| 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.net.ssl |
Provides classes for the secure socket package.
|
| Modifier and Type | Field and Description |
|---|---|
protected SecureRandom |
SignatureSpi.appRandom
Application-specified source of randomness.
|
| Modifier and Type | Method and Description |
|---|---|
static SecureRandom |
SecureRandom.getInstance(String
Returns a SecureRandom object that implements the specified Random Number Generator (RNG) algorithm.
|
static SecureRandom |
SecureRandom.getInstance(String
Returns a SecureRandom object that implements the specified Random Number Generator (RNG) algorithm.
|
static SecureRandom |
SecureRandom.getInstance(String
Returns a SecureRandom object that implements the specified Random Number Generator (RNG) algorithm.
|
static SecureRandom |
SecureRandom.getInstanceStrong()
Returns a
SecureRandom object that was selected by using the algorithms/providers specified in the
securerandom.strongAlgorithms
Security property.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
AlgorithmParameterGeneratorSpi.engineInit(AlgorithmParameterSpec
Initializes this parameter generator with a set of algorithm-specific parameter generation values.
|
protected abstract void |
AlgorithmParameterGeneratorSpi.engineInit(int size, SecureRandom
Initializes this parameter generator for a certain size and source of randomness.
|
protected void |
SignatureSpi.engineInitSign(PrivateKey
Initializes this signature object with the specified private key and source of randomness for signing operations.
|
void |
AlgorithmParameterGenerator.init(AlgorithmParameterSpec
Initializes this parameter generator with a set of algorithm-specific parameter generation values.
|
void |
AlgorithmParameterGenerator.init(int size, SecureRandom
Initializes this parameter generator for a certain size and source of randomness.
|
void |
KeyPairGenerator.initialize(AlgorithmParameterSpec
Initializes the key pair generator with the given parameter set and source of randomness.
|
void |
KeyPairGeneratorSpi.initialize(AlgorithmParameterSpec
Initializes the key pair generator using the specified parameter set and user-provided source of randomness.
|
void |
KeyPairGenerator.initialize(int keysize, SecureRandom
Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set).
|
abstract void |
KeyPairGeneratorSpi.initialize(int keysize, SecureRandom
Initializes the key pair generator for a certain keysize, using the default parameter set.
|
void |
Signature.initSign(PrivateKey
Initialize this object for signing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DSAKeyPairGenerator.initialize(DSAParams
Initializes the key pair generator using the DSA family parameters (p,q and g) and an optional SecureRandom bit source.
|
void |
DSAKeyPairGenerator.initialize(int modlen, boolean genParams, SecureRandom
Initializes the key pair generator for a given modulus length (instead of parameters), and an optional SecureRandom bit source.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
KeyGeneratorSpi.engineInit(AlgorithmParameterSpec
Initializes the key generator with the specified parameter set and a user-provided 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, 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 |
KeyGeneratorSpi.engineInit(int keysize, SecureRandom
Initializes this key generator for a certain keysize, using the given source of randomness.
|
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 void |
KeyGeneratorSpi.engineInit(SecureRandom
Initializes the key generator.
|
void |
KeyGenerator.init(AlgorithmParameterSpec
Initializes this key generator with the specified parameter set and a user-provided source of randomness.
|
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, 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 |
KeyGenerator.init(int keysize, SecureRandom
Initializes this key generator for a certain keysize, using a user-provided source of randomness.
|
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.
|
void |
KeyGenerator.init(SecureRandom
Initializes this key generator.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
SSLContextSpi.engineInit(KeyManager
Initializes this context.
|
void |
SSLContext.init(KeyManager
Initializes this context.
|