| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.security.interfaces |
Provides interfaces for generating RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) keys as defined in the RSA Laboratory Technical Note PKCS#1, and DSA (Digital Signature Algorithm) keys as defined in NIST's FIPS-186.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic operations.
|
| javax.crypto.interfaces |
Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.
|
| javax.crypto.spec |
Provides classes and interfaces for key specifications and algorithm parameter specifications.
|
| javax.security.auth.kerberos |
This package contains utility classes related to the Kerberos network authentication protocol.
|
| javax.xml.crypto |
Common classes for XML cryptography.
|
| javax.xml.crypto.dsig.dom |
DOM-specific classes for the
javax.xml.crypto.dsig package.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
PrivateKey
A private key.
|
interface |
PublicKey
A public key.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Key |
KeyStoreSpi.engineGetKey(String
Returns the key associated with the given alias, using the given password to recover it.
|
protected abstract Key |
KeyFactorySpi.engineTranslateKey(Key
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
|
Key |
KeyStore.getKey(String
Returns the key associated with the given alias, using the given password to recover it.
|
Key |
KeyFactory.translateKey(Key
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract <T extends KeySpec |
KeyFactorySpi.engineGetKeySpec(Key
Returns a specification (key material) of the given key object.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String
Assigns the given key to the given alias, protecting it with the given password.
|
protected abstract Key |
KeyFactorySpi.engineTranslateKey(Key
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
|
<T extends KeySpec |
KeyFactory.getKeySpec(Key
Returns a specification (key material) of the given key object.
|
boolean |
AlgorithmConstraints.permits(Set
Determines whether a key is granted permission for the specified cryptographic primitives.
|
boolean |
AlgorithmConstraints.permits(Set
Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives.
|
void |
KeyStore.setKeyEntry(String
Assigns the given key to the given alias, protecting it with the given password.
|
Key |
KeyFactory.translateKey(Key
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DSAPrivateKey
The standard interface to a DSA private key.
|
interface |
DSAPublicKey
The interface to a DSA public key.
|
interface |
ECPrivateKey
The interface to an elliptic curve (EC) private key.
|
interface |
ECPublicKey
The interface to an elliptic curve (EC) public key.
|
interface |
RSAMultiPrimePrivateCrtKey
The interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.1, using the
Chinese Remainder Theorem (CRT) information values.
|
interface |
RSAPrivateCrtKey
The interface to an RSA private key, as defined in the PKCS#1 standard, using the
Chinese Remainder Theorem (CRT) information values.
|
interface |
RSAPrivateKey
The interface to an RSA private key.
|
interface |
RSAPublicKey
The interface to an RSA public key.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SecretKey
A secret (symmetric) key.
|
| Modifier and Type | Method and Description |
|---|---|
Key |
KeyAgreement.doPhase(Key
Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.
|
protected abstract Key |
KeyAgreementSpi.engineDoPhase(Key
Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.
|
protected Key |
CipherSpi.engineUnwrap(byte[] wrappedKey, String
Unwrap a previously wrapped key.
|
Key |
Cipher.unwrap(byte[] wrappedKey, String
Unwrap a previously wrapped key.
|
| Modifier and Type | Method and Description |
|---|---|
Key |
KeyAgreement.doPhase(Key
Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.
|
protected abstract Key |
KeyAgreementSpi.engineDoPhase(Key
Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.
|
protected int |
CipherSpi.engineGetKeySize(Key
Returns the key size of the given key object in bits.
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key
Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key
Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key
Initializes this cipher with a key and a source of randomness.
|
protected abstract void |
ExemptionMechanismSpi.engineInit(Key
Initializes this exemption mechanism with a key.
|
protected abstract void |
ExemptionMechanismSpi.engineInit(Key
Initializes this exemption mechanism with a key and a set of algorithm parameters.
|
protected abstract void |
ExemptionMechanismSpi.engineInit(Key
Initializes this exemption mechanism with a key and a set of algorithm parameters.
|
protected abstract void |
MacSpi.engineInit(Key
Initializes the MAC with the given (secret) key and algorithm parameters.
|
protected abstract void |
KeyAgreementSpi.engineInit(Key
Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.
|
protected abstract void |
KeyAgreementSpi.engineInit(Key
Initializes this key agreement with the given key and source of randomness.
|
protected byte[] |
CipherSpi.engineWrap(Key
Wrap a key.
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.
|
Object |
SealedObject.getObject(Key
Retrieves the original (encapsulated) object.
|
Object |
SealedObject.getObject(Key
Retrieves the original (encapsulated) object.
|
void |
Cipher.init(int opmode, Key
Initializes this cipher with a key.
|
void |
Cipher.init(int opmode, Key
Initializes this cipher with a key and a set of algorithm parameters.
|
void |
Cipher.init(int opmode, Key
Initializes this cipher with a key and a set of algorithm parameters.
|
void |
Cipher.init(int opmode, Key
Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
|
void |
Cipher.init(int opmode, Key
Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
|
void |
Cipher.init(int opmode, Key
Initializes this cipher with a key and a source of randomness.
|
void |
KeyAgreement.init(Key
Initializes this key agreement with the given key, which is required to contain all the algorithm parameters required for this key agreement.
|
void |
Mac.init(Key
Initializes this
Mac object with the given key.
|
void |
ExemptionMechanism.init(Key
Initializes this exemption mechanism with a key.
|
void |
ExemptionMechanism.init(Key
Initializes this exemption mechanism with a key and a set of algorithm parameters.
|
void |
KeyAgreement.init(Key
Initializes this key agreement with the given key and set of algorithm parameters.
|
void |
Mac.init(Key
Initializes this
Mac object with the given key and algorithm parameters.
|
void |
ExemptionMechanism.init(Key
Initializes this exemption mechanism with a key and a set of algorithm parameters.
|
void |
KeyAgreement.init(Key
Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.
|
void |
KeyAgreement.init(Key
Initializes this key agreement with the given key and source of randomness.
|
boolean |
ExemptionMechanism.isCryptoAllowed(Key
Returns whether the result blob has been generated successfully by this exemption mechanism.
|
byte[] |
Cipher.wrap(Key
Wrap a key.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DHPrivateKey
The interface to a Diffie-Hellman private key.
|
interface |
DHPublicKey
The interface to a Diffie-Hellman public key.
|
interface |
PBEKey
The interface to a PBE key.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SecretKeySpec
This class specifies a secret key in a provider-independent fashion.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerberosKey
This class encapsulates a long term secret key for a Kerberos principal.
|
| Modifier and Type | Method and Description |
|---|---|
Key |
KeySelectorResult.getKey()
Returns the selected key.
|
| Modifier and Type | Method and Description |
|---|---|
static KeySelector |
KeySelector.singletonKeySelector(Key
Returns a
KeySelector that always selects the specified key, regardless of the
KeyInfo passed to it.
|
| Constructor and Description | |
|---|---|
DOMSignContext(Key
Creates a
DOMSignContext with the specified signing key and parent node.
|
|
DOMSignContext(Key
Creates a
DOMSignContext with the specified signing key, parent and next sibling nodes.
|
|
DOMValidateContext(Key
Creates a
DOMValidateContext containing the specified key and node.
|