Package | Description |
---|---|
java.security |
Contains core language classes related to permission management.
|
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).
|
Modifier and Type | Class and Description |
---|---|
class |
EncodedKeySpec
This class represents a public or private key in encoded format.
|
class |
PKCS8EncodedKeySpec
This class represents the ASN.1 encoding of a private key, encoded according to the ASN.1 type
PrivateKeyInfo . |
Modifier and Type | Class and Description |
---|---|
class |
SecretKeySpec
This class specifies a secret key in a provider-independent fashion.
|