Package java.security

Class KeyStore.TrustedCertificateEntry

  • All Implemented Interfaces:
    KeyStore.Entry
    Enclosing class:
    KeyStore

    public static final class KeyStore.TrustedCertificateEntry
    extends Object
    implements KeyStore.Entry
    TrustedCertificateEntry represents a KeyStore entry that holds a trusted certificate.
    • Constructor Detail

      • TrustedCertificateEntry

        public TrustedCertificateEntry​(Certificate trustCertificate)
        Constructs a new instance of TrustedCertificateEntry with the given Certificate.
        Parameters:
        trustCertificate - the trusted certificate.
        Throws:
        NullPointerException - if trustCertificate is null.
    • Method Detail

      • getTrustedCertificate

        public Certificate getTrustedCertificate()
        Returns the trusted certificate.
        Returns:
        the trusted certificate.
      • toString

        public String toString()
        Returns a string containing a concise, human-readable description of this TrustedCertificateEntry.
        Overrides:
        toString in class Object
        Returns:
        a printable representation for this TrustedCertificateEntry.