public static final class KeyStore.SecretKeyEntry extends Object implements KeyStore.Entry
KeyStore entry that holds a SecretKey.KeyStore.Entry.Attribute| Constructor and Description |
|---|
SecretKeyEntry(SecretKey secretKey)
Constructs a
SecretKeyEntry with a
SecretKey. |
SecretKeyEntry(SecretKey secretKey,
Set<KeyStore.Entry.Attribute> attributes)
Constructs a
SecretKeyEntry with a SecretKey and
associated entry attributes. |
| Modifier and Type | Method and Description |
|---|---|
Set<KeyStore.Entry.Attribute> |
getAttributes()
Retrieves the attributes associated with an entry.
|
SecretKey |
getSecretKey()
Gets the
SecretKey from this entry. |
String |
toString()
Returns a string representation of this SecretKeyEntry.
|
public SecretKeyEntry(SecretKey secretKey)
SecretKeyEntry with a
SecretKey.NullPointerException - if secretKey
is nullsecretKey - the SecretKeypublic SecretKeyEntry(SecretKey secretKey, Set<KeyStore.Entry.Attribute> attributes)
SecretKeyEntry with a SecretKey and
associated entry attributes.
The specified attributes is cloned before it is stored
in the new SecretKeyEntry object.
NullPointerException - if secretKey or
attributes is nullsecretKey - the SecretKeyattributes - the attributespublic SecretKey getSecretKey()
SecretKey from this entry.SecretKey from this entrypublic Set<KeyStore.Entry.Attribute> getAttributes()
getAttributes in interface KeyStore.EntrySet of attributes, possibly emptyaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.