public static final class KeyStore.TrustedCertificateEntry extends Objectimplements KeyStore .Entry
KeyStore entry that holds a trusted
Certificate.
KeyStore.Entry.Attribute | Constructor and Description |
|---|
TrustedCertificateEntry(Certificate
Constructs a
TrustedCertificateEntry with a trusted
Certificate.
|
TrustedCertificateEntry(Certificate
Constructs a
TrustedCertificateEntry with a trusted
Certificate and associated entry attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Set |
getAttributes()
Retrieves the attributes associated with an entry.
|
Certificate |
getTrustedCertificate()
Gets the trusted
Certficate from this entry.
|
String |
toString()
Returns a string representation of this TrustedCertificateEntry.
|
public TrustedCertificateEntry(CertificatetrustedCert)
TrustedCertificateEntry with a trusted
Certificate.
trustedCert - the trusted
Certificate
NullPointerException - if
trustedCert is
null
public TrustedCertificateEntry(CertificatetrustedCert, Set <KeyStore .Entry .Attribute > attributes)
TrustedCertificateEntry with a trusted
Certificate and associated entry attributes.
The specified attributes is cloned before it is stored in the new TrustedCertificateEntry object.
trustedCert - the trusted
Certificate
attributes - the attributes
NullPointerException - if
trustedCert or
attributes is
null
public CertificategetTrustedCertificate()
Certficate from this entry.
Certificate from this entry
public Set<KeyStore .Entry .Attribute > getAttributes()
getAttributes in interface
KeyStore.Entry
Set of attributes, possibly empty