| Package | Description |
|---|---|
| java.security |
Contains core language classes related to permission management.
|
| java.security.cert |
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
|
| javax.crypto |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
SignatureSpi.engineInitSign(PrivateKey privateKey)
Initializes this signature object with the specified private key for signing operations.
|
protected void |
SignatureSpi.engineInitSign(PrivateKey privateKey,
SecureRandom random)
Initializes this signature object with the specified private key and source of randomness for signing operations.
|
protected abstract void |
SignatureSpi.engineInitVerify(PublicKey publicKey)
Initializes this signature object with the specified public key for verification operations.
|
void |
Signature.initSign(PrivateKey privateKey)
Initialize this object for signing.
|
void |
Signature.initSign(PrivateKey privateKey,
SecureRandom random)
Initialize this object for signing.
|
void |
Signature.initVerify(Certificate certificate)
Initializes this object for verification, using the public key from the given certificate.
|
void |
Signature.initVerify(PublicKey publicKey)
Initializes this object for verification.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
X509CRL.verify(PublicKey key)
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
abstract void |
Certificate.verify(PublicKey key)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
abstract void |
Certificate.verify(PublicKey key,
java.lang.String sigProvider)
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 key,
boolean lastPhase)
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 key,
boolean lastPhase)
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(java.lang.String algorithm)
Creates the shared secret and returns it as a secret key object
of the requested algorithm type.
|
protected abstract void |
KeyAgreementSpi.engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random)
Initializes this key agreement with the given key, set of
algorithm parameters, and source of randomness.
|
protected abstract void |
KeyAgreementSpi.engineInit(Key key,
SecureRandom random)
Initializes this key agreement with the given key and source of
randomness.
|
SecretKey |
KeyAgreement.generateSecret(java.lang.String algorithm)
Creates the shared secret and returns it as a
SecretKey
object of the specified algorithm. |
void |
Cipher.init(int opmode,
Certificate certificate)
Initializes this cipher with the public key from the given certificate.
|
void |
Cipher.init(int opmode,
Certificate certificate,
SecureRandom random)
Initializes this cipher with the public key from the given certificate and a source of randomness.
|
void |
Cipher.init(int opmode,
Key key)
Initializes this cipher with a key.
|
void |
Cipher.init(int opmode,
Key key,
AlgorithmParameterSpec params)
Initializes this cipher with a key and a set of algorithm parameters.
|
void |
Cipher.init(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
|
void |
Cipher.init(int opmode,
Key key,
SecureRandom random)
Initializes this cipher with a key and a source of randomness.
|
void |
Mac.init(Key key)
Initializes this
Mac object with the given key. |
void |
KeyAgreement.init(Key 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 key,
AlgorithmParameterSpec params)
Initializes this
Mac object with the given key and algorithm parameters. |
void |
KeyAgreement.init(Key key,
AlgorithmParameterSpec params)
Initializes this key agreement with the given key and set of
algorithm parameters.
|
void |
KeyAgreement.init(Key key,
AlgorithmParameterSpec params,
SecureRandom random)
Initializes this key agreement with the given key, set of
algorithm parameters, and source of randomness.
|
void |
KeyAgreement.init(Key key,
SecureRandom random)
Initializes this key agreement with the given key and source of
randomness.
|
Key |
Cipher.unwrap(byte[] wrappedKey,
java.lang.String wrappedKeyAlgorithm,
int wrappedKeyType)
Unwrap a previously wrapped key.
|
byte[] |
Cipher.wrap(Key key)
Wrap a key.
|