public static final class KeyStore.TrustedCertificateEntry extends Object implements KeyStore.Entry
KeyStore
entry that holds a trusted
Certificate
.KeyStore.Entry.Attribute
Constructor and Description |
---|
TrustedCertificateEntry(Certificate trustedCert)
Constructs a
TrustedCertificateEntry with a
trusted Certificate . |
TrustedCertificateEntry(Certificate trustedCert,
Set<KeyStore.Entry.Attribute> attributes)
Constructs a
TrustedCertificateEntry with a
trusted Certificate and associated entry attributes. |
Modifier and Type | Method and Description |
---|---|
Set<KeyStore.Entry.Attribute> |
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(Certificate trustedCert)
TrustedCertificateEntry
with a
trusted Certificate
.NullPointerException
- if
trustedCert
is null
trustedCert
- the trusted Certificate
public TrustedCertificateEntry(Certificate trustedCert, 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.
NullPointerException
- if trustedCert
or
attributes
is null
trustedCert
- the trusted Certificate
attributes
- the attributespublic Certificate getTrustedCertificate()
Certficate
from this entry.Certificate
from this entrypublic Set<KeyStore.Entry.Attribute> getAttributes()
getAttributes
in interface KeyStore.Entry
Set
of attributes, possibly emptyaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.