| Package | Description | 
|---|---|
| java.security | 
 Contains core language classes related to permission management. 
 | 
| java.security.cert | 
 Contains classes for certificate management. 
 | 
| 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 | 
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 | 
|---|---|
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 | 
Mac.init(Key key,
    AlgorithmParameterSpec params)
Initializes this  
Mac object with the given key and algorithm parameters. | 
Key | 
Cipher.unwrap(byte[] wrappedKey,
      java.lang.String wrappedKeyAlgorithm,
      int wrappedKeyType)
Unwrap a previously wrapped key. 
 | 
byte[] | 
Cipher.wrap(Key key)
Wrap a key. 
 |