Added in API level 1

SecretKeyEntry

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

A KeyStore entry that holds a SecretKey.

Summary

Public constructors

Constructs a SecretKeyEntry with a SecretKey.

Constructs a SecretKeyEntry with a SecretKey and associated entry attributes.

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

Retrieves the attributes associated with an entry.

SecretKey!

Gets the SecretKey from this entry.

String

Returns a string representation of this SecretKeyEntry.

Public constructors

SecretKeyEntry

Added in API level 1
SecretKeyEntry(secretKey: SecretKey!)

Constructs a SecretKeyEntry with a SecretKey.

Parameters
secretKey SecretKey!: the SecretKey
Exceptions
java.lang.NullPointerException if secretKey is null

SecretKeyEntry

Added in API level 26
SecretKeyEntry(
    secretKey: SecretKey!,
    attributes: MutableSet<KeyStore.Entry.Attribute!>!)

Constructs a SecretKeyEntry with a SecretKey and associated entry attributes.

The specified attributes is cloned before it is stored in the new SecretKeyEntry object.

Parameters
secretKey SecretKey!: the SecretKey
attributes MutableSet<KeyStore.Entry.Attribute!>!: the attributes
Exceptions
java.lang.NullPointerException if secretKey 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

getSecretKey

Added in API level 1
fun getSecretKey(): SecretKey!

Gets the SecretKey from this entry.

Return
SecretKey! the SecretKey from this entry

toString

Added in API level 1
fun toString(): String

Returns a string representation of this SecretKeyEntry.

Return
String a string representation of this SecretKeyEntry.