Added in API level 1

TrustedCertificateEntry

class TrustedCertificateEntry : KeyStore.Entry
kotlin.Any
   ↳ java.security.KeyStore.TrustedCertificateEntry

A KeyStore entry that holds a trusted Certificate.

Summary

Public constructors

Constructs a TrustedCertificateEntry with a trusted Certificate.

Constructs a TrustedCertificateEntry with a trusted Certificate and associated entry attributes.

Public methods
MutableSet<KeyStore.Entry.Attribute!>!

Retrieves the attributes associated with an entry.

Certificate!

Gets the trusted Certficate from this entry.

String

Returns a string representation of this TrustedCertificateEntry.

Public constructors

TrustedCertificateEntry

Added in API level 1
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

Added in API level 26
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

Added in API level 26
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

Added in API level 1
fun getTrustedCertificate(): Certificate!

Gets the trusted Certficate from this entry.

Return
Certificate! the trusted Certificate from this entry

toString

Added in API level 1
fun toString(): String

Returns a string representation of this TrustedCertificateEntry.

Return
String a string representation of this TrustedCertificateEntry.