Package java.security
Class KeyStore.TrustedCertificateEntry
java.lang.Object
java.security.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 Summary
Constructors Constructor Description TrustedCertificateEntry(Certificate trustCertificate)Constructs a new instance ofTrustedCertificateEntrywith the givenCertificate. -
Method Summary
Modifier and Type Method Description CertificategetTrustedCertificate()Returns the trusted certificate.StringtoString()Returns a string containing a concise, human-readable description of thisTrustedCertificateEntry.
-
Constructor Details
-
TrustedCertificateEntry
Constructs a new instance ofTrustedCertificateEntrywith the givenCertificate.- Parameters:
trustCertificate- the trusted certificate.- Throws:
NullPointerException- iftrustCertificateisnull.
-
-
Method Details
-
getTrustedCertificate
Returns the trusted certificate.- Returns:
- the trusted certificate.
-
toString
Returns a string containing a concise, human-readable description of thisTrustedCertificateEntry.
-