java.lang.Object | |
↳ | javax.crypto.SecretKeyFactorySpi |
The Service Provider Interface (SPI) definition for the SecretKeyFactory
class.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
SecretKeyFactorySpi instance. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generate a secret key from the specified key specification.
| |||||||||||
Returns the key specification of the specified secret key.
| |||||||||||
Translates the specified secret key into an instance of the corresponding
key from the provider of this key factory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Creates a new SecretKeyFactorySpi
instance.
Generate a secret key from the specified key specification.
keySpec | the key specification. |
---|
InvalidKeySpecException | if the specified key specification cannot be used to generate a secret key. |
---|
Returns the key specification of the specified secret key.
key | the secret key to get the specification from. |
---|---|
keySpec | the target key specification class. |
InvalidKeySpecException | if the specified secret key cannot be transformed into the requested key specification. |
---|
Translates the specified secret key into an instance of the corresponding key from the provider of this key factory.
key | the secret key to translate. |
---|
InvalidKeyException | if the specified key cannot be translated using this key factory. |
---|