Uses of Class java.security.AlgorithmParameters

Uses in package javax.crypto

Constructors with parameter type java.security.AlgorithmParameters

Create a new EncryptedPrivateKeyInfo object from raw encrypted data and the parameters used for encryption.

Methods with parameter type java.security.AlgorithmParameters

void
CipherSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
Initializes this cipher with an operation mode, key, parameters, and source of randomness.
void
Initialize this mechanism with a key and parameters.
void
Cipher.init(int opmode, Key key, AlgorithmParameters params)
Initialize this cipher with the supplied key and parameters.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

If this cipher requires any random bytes (for example for an initilization vector) then the SecureRandom with the highest priority is used as the source of these bytes.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.

void
Cipher.init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
Initialize this cipher with the supplied key, parameters, and source of randomness.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.

void

Methods with return type java.security.AlgorithmParameters

AlgorithmParameters
Returns the parameters that this cipher is using.
AlgorithmParameters
AlgorithmParameters
Return the AlgorithmParameters that this instance was initialized with.

Uses in package java.security

Methods with return type java.security.AlgorithmParameters

AlgorithmParameters
Generate a new set of AlgorithmParameters.
AlgorithmParameters
This method is overridden by providers to return the parameters used with this signature engine, or null if this signature engine does not use any parameters.

The returned parameters may be the same that were used to initialize this signature engine, or may contain a combination of default and randomly generated parameter values used by the underlying signature implementation if this signature engine requires algorithm parameters but was not initialized with any.

AlgorithmParameters
Generates the parameters.
AlgorithmParameters
Generates a parameter object for the specified algorithm.

If the default provider package provides an implementation of the requested algorithm, an instance of AlgorithmParameters containing that implementation is returned.

AlgorithmParameters
Generates a parameter object for the specified algorithm, as supplied by the specified provider, if such an algorithm is available from the provider.

The returned parameter object must be initialized via a call to init(), using an appropriate parameter specification or parameter encoding.

AlgorithmParameters
Generates an AlgorithmParameterGenerator object for the requested algorithm, as supplied from the specified provider, if such a parameter generator is available from the provider.
AlgorithmParameters
Returns the parameters used with this signature object.

The returned parameters may be the same that were used to initialize this signature, or may contain a combination of default and randomly generated parameter values used by the underlying signature implementation if this signature requires algorithm parameters but was not initialized with any.