SecretKeyEntry
class SecretKeyEntry : KeyStore.Entry
| kotlin.Any | |
| ↳ | java.security.KeyStore.SecretKeyEntry |
A KeyStore entry that holds a SecretKey.
Summary
| Public constructors | |
|---|---|
SecretKeyEntry(secretKey: SecretKey!)Constructs a |
|
SecretKeyEntry(secretKey: SecretKey!, attributes: MutableSet<KeyStore.Entry.Attribute!>!)Constructs a |
|
| Public methods | |
|---|---|
| MutableSet<KeyStore.Entry.Attribute!>! |
Retrieves the attributes associated with an entry. |
| SecretKey! |
Gets the |
| String |
toString()Returns a string representation of this SecretKeyEntry. |
Public constructors
SecretKeyEntry
SecretKeyEntry(secretKey: SecretKey!)
Constructs a SecretKeyEntry with a SecretKey.
| Parameters | |
|---|---|
secretKey |
SecretKey!: the SecretKey |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
if secretKey is null |
SecretKeyEntry
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
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
fun getSecretKey(): SecretKey!
Gets the SecretKey from this entry.
| Return | |
|---|---|
SecretKey! |
the SecretKey from this entry |
toString
fun toString(): String
Returns a string representation of this SecretKeyEntry.
| Return | |
|---|---|
String |
a string representation of this SecretKeyEntry. |