Package java.security
Class KeyStore.SecretKeyEntry
java.lang.Object
java.security.KeyStore.SecretKeyEntry
- All Implemented Interfaces:
KeyStore.Entry
- Enclosing class:
- KeyStore
public static final class KeyStore.SecretKeyEntry extends Object implements KeyStore.Entry
SecretKeyEntry represents a KeyStore entry that
holds a secret key.-
Constructor Summary
Constructors Constructor Description SecretKeyEntry(SecretKey secretKey)Constructs a new instance ofSecretKeyEntrywith the givenSecretKey. -
Method Summary
Modifier and Type Method Description SecretKeygetSecretKey()Returns the secret key.StringtoString()Returns a string containing a concise, human-readable description of thisSecretKeyEntry.
-
Constructor Details
-
SecretKeyEntry
Constructs a new instance ofSecretKeyEntrywith the givenSecretKey.- Parameters:
secretKey- the secret key.- Throws:
NullPointerException- ifsecretKeyisnull.
-
-
Method Details