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
TrustedCertificateEntryrepresents aKeyStoreentry that holds a trusted certificate.
-
-
Constructor Summary
Constructors Constructor Description TrustedCertificateEntry(Certificate trustCertificate)Constructs a new instance ofTrustedCertificateEntrywith the givenCertificate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificategetTrustedCertificate()Returns the trusted certificate.StringtoString()Returns a string containing a concise, human-readable description of thisTrustedCertificateEntry.
-
-
-
Constructor Detail
-
TrustedCertificateEntry
public TrustedCertificateEntry(Certificate trustCertificate)
Constructs a new instance ofTrustedCertificateEntrywith the givenCertificate.- Parameters:
trustCertificate- the trusted certificate.- Throws:
NullPointerException- iftrustCertificateisnull.
-
-
Method Detail
-
getTrustedCertificate
public Certificate getTrustedCertificate()
Returns the trusted certificate.- Returns:
- the trusted certificate.
-
-