public static final class KeyStore.SecretKeyEntry extends Object implements KeyStore.Entry
KeyStore entry that holds a SecretKey.KeyStore.Entry.Attribute | Constructor | 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 | 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.secretKey - the SecretKeyNullPointerException - if secretKey
is nullpublic 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.
secretKey - the SecretKeyattributes - the attributesNullPointerException - if secretKey or
attributes is nullpublic SecretKey getSecretKey()
SecretKey from this entry.SecretKey from this entrypublic Set<KeyStore.Entry.Attribute> getAttributes()
getAttributes in interface KeyStore.Entry Set of attributes, possibly empty Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.