Interface IX509CertificateFromEclipseBundle

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IX509CertificateFromEclipseBundle
    Interface that gets the signing certificates of a class of a bundle in Eclipse.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.security.cert.X509Certificate[]getCertificates​(java.lang.Class<?> cls)
      Get the code signing certificates of a class in an Eclipse bundle.
    • Method Detail

      • getCertificates

        java.security.cert.X509Certificate[] getCertificates​(java.lang.Class<?> cls)
                                                      throws CodeSigningCertificateResolverException
        Get the code signing certificates of a class in an Eclipse bundle.
        Parameters:
        cls - The class to retrieve the code signing certificates for.
        Returns:
        The first signer certificate chain of the bundle encountered, or null for none.
        Throws:
        CodeSigningCertificateResolverException - In case it cannot be resolved using OSGI for Eclipse.