TrustedCertificateEntry
class TrustedCertificateEntry : KeyStore.Entry
| kotlin.Any | |
| ↳ | java.security.KeyStore.TrustedCertificateEntry |
A KeyStore entry that holds a trusted Certificate.
Summary
| Public constructors | |
|---|---|
TrustedCertificateEntry(trustedCert: Certificate!)Constructs a |
|
TrustedCertificateEntry(trustedCert: Certificate!, attributes: MutableSet<KeyStore.Entry.Attribute!>!)Constructs a |
|
| Public methods | |
|---|---|
| MutableSet<KeyStore.Entry.Attribute!>! |
Retrieves the attributes associated with an entry. |
| Certificate! |
Gets the trusted |
| String |
toString()Returns a string representation of this TrustedCertificateEntry. |
Public constructors
TrustedCertificateEntry
TrustedCertificateEntry(trustedCert: Certificate!)
Constructs a TrustedCertificateEntry with a trusted Certificate.
| Parameters | |
|---|---|
trustedCert |
Certificate!: the trusted Certificate |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
if trustedCert is null |
TrustedCertificateEntry
TrustedCertificateEntry(
trustedCert: Certificate!,
attributes: MutableSet<KeyStore.Entry.Attribute!>!)
Constructs a TrustedCertificateEntry with a trusted Certificate and associated entry attributes.
The specified attributes is cloned before it is stored in the new TrustedCertificateEntry object.
| Parameters | |
|---|---|
trustedCert |
Certificate!: the trusted Certificate |
attributes |
MutableSet<KeyStore.Entry.Attribute!>!: the attributes |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
if trustedCert or attributes is null |
Public methods
getAttributes
fun getAttributes(): MutableSet<KeyStore.Entry.Attribute!>!
Retrieves the attributes associated with an entry.
| Return | |
|---|---|
MutableSet<KeyStore.Entry.Attribute!>! |
an unmodifiable Set of attributes, possibly empty |
getTrustedCertificate
fun getTrustedCertificate(): Certificate!
Gets the trusted Certficate from this entry.
| Return | |
|---|---|
Certificate! |
the trusted Certificate from this entry |
toString
fun toString(): String
Returns a string representation of this TrustedCertificateEntry.
| Return | |
|---|---|
String |
a string representation of this TrustedCertificateEntry. |