| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic operations.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract PrivateKey |
KeyFactorySpi.engineGeneratePrivate(KeySpec
Generates a private key object from the provided key specification (key material).
|
protected abstract PublicKey |
KeyFactorySpi.engineGeneratePublic(KeySpec
Generates a public key object from the provided key specification (key material).
|
protected abstract <T extends KeySpec |
KeyFactorySpi.engineGetKeySpec(Key
Returns a specification (key material) of the given key object.
|
PrivateKey |
KeyFactory.generatePrivate(KeySpec
Generates a private key object from the provided key specification (key material).
|
PublicKey |
KeyFactory.generatePublic(KeySpec
Generates a public key object from the provided key specification (key material).
|
<T extends KeySpec |
KeyFactory.getKeySpec(Key
Returns a specification (key material) of the given key object.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract SecretKey |
SecretKeyFactorySpi.engineGenerateSecret(KeySpec
Generates a
SecretKey object from the provided key specification (key material).
|
protected abstract KeySpec |
SecretKeyFactorySpi.engineGetKeySpec(SecretKey
Returns a specification (key material) of the given key object in the requested format.
|
SecretKey |
SecretKeyFactory.generateSecret(KeySpec
Generates a
SecretKey object from the provided key specification (key material).
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Cipher
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.
|
KeySpec |
SecretKeyFactory.getKeySpec(SecretKey
Returns a specification (key material) of the given key object in the requested format.
|