Package | Description |
---|---|
java.security | |
java.security.spec | |
javax.crypto.spec |
Modifier and Type | Method and Description |
---|---|
PrivateKey |
KeyFactory.generatePrivate(KeySpec keySpec)
Generates a private key object from the provided key specification (key material).
|
PublicKey |
KeyFactory.generatePublic(KeySpec keySpec)
Generates a public key object from the provided key specification (key material).
|
Modifier and Type | Class and Description |
---|---|
class |
EncodedKeySpec |
class |
PKCS8EncodedKeySpec |
class |
X509EncodedKeySpec |
Modifier and Type | Class and Description |
---|---|
class |
SecretKeySpec
This class specifies a secret key in a provider-independent fashion.
|