| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.security.cert |
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic operations.
|
| javax.crypto.spec |
Provides classes and interfaces for key specifications and algorithm parameter specifications.
|
| javax.security.cert |
Provides classes for public key certificates.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
SignatureSpi.engineInitSign(PrivateKey
Initializes this signature object with the specified private key for signing operations.
|
protected void |
SignatureSpi.engineInitSign(PrivateKey
Initializes this signature object with the specified private key and source of randomness for signing operations.
|
protected abstract void |
SignatureSpi.engineInitVerify(PublicKey
Initializes this signature object with the specified public key for verification operations.
|
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.
|
void |
Signature.initSign(PrivateKey
Initialize this object for signing.
|
void |
Signature.initSign(PrivateKey
Initialize this object for signing.
|
void |
Signature.initVerify(Certificate
Initializes this object for verification, using the public key from the given certificate.
|
void |
Signature.initVerify(PublicKey
Initializes this object for verification.
|
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.
|
boolean |
SignedObject.verify(PublicKey
Verifies that the signature in this SignedObject is the valid signature for the object stored inside, with the given verification key, using the designated verification engine.
|
| Constructor and Description | |
|---|---|
SignedObject(Serializable
Constructs a SignedObject from any Serializable object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
X509CRL.verify(PublicKey
Verifies that this CRL was signed using the private key that corresponds to the given public key.
|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
void |
X509CRL.verify(PublicKey
Verifies that this CRL was signed using the private key that corresponds to the given public key.
|
void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
void |
X509Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
abstract void |
X509CRL.verify(PublicKey
Verifies that this CRL was signed using the private key that corresponds to the given public key.
|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public 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 abstract SecretKey |
KeyAgreementSpi.engineGenerateSecret(String
Creates the shared secret and returns it as a secret key object of the requested algorithm type.
|
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 abstract SecretKey |
SecretKeyFactorySpi.engineTranslateKey(SecretKey
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.
|
protected Key |
CipherSpi.engineUnwrap(byte[] wrappedKey, String
Unwrap a previously wrapped key.
|
protected byte[] |
CipherSpi.engineWrap(Key
Wrap a key.
|
SecretKey |
KeyAgreement.generateSecret(String
Creates the shared secret and returns it as a
SecretKey object of the specified algorithm.
|
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, Certificate
Initializes this cipher with the public key from the given certificate.
|
void |
Cipher.init(int opmode, Certificate
Initializes this cipher with the public key from the given certificate and a source of randomness.
|
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.
|
SecretKey |
SecretKeyFactory.translateKey(SecretKey
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.
|
Key |
Cipher.unwrap(byte[] wrappedKey, String
Unwrap a previously wrapped key.
|
byte[] |
Cipher.wrap(Key
Wrap a key.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
DESKeySpec.isParityAdjusted(byte[] key, int offset)
Checks if the given DES key material, starting at
offset inclusive, is parity-adjusted.
|
static boolean |
DESedeKeySpec.isParityAdjusted(byte[] key, int offset)
Checks if the given DES-EDE key, starting at
offset inclusive, is parity-adjusted.
|
static boolean |
DESKeySpec.isWeak(byte[] key, int offset)
Checks if the given DES key material is weak or semi-weak.
|
| Constructor and Description | |
|---|---|
DESedeKeySpec(byte[] key)
Creates a DESedeKeySpec object using the first 24 bytes in
key as the key material for the DES-EDE key.
|
|
DESedeKeySpec(byte[] key, int offset)
Creates a DESedeKeySpec object using the first 24 bytes in
key, beginning at
offset inclusive, as the key material for the DES-EDE key.
|
|
DESKeySpec(byte[] key)
Creates a DESKeySpec object using the first 8 bytes in
key as the key material for the DES key.
|
|
DESKeySpec(byte[] key, int offset)
Creates a DESKeySpec object using the first 8 bytes in
key, beginning at
offset inclusive, as the key material for the DES key.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|