public interface PssKeyPairGenerator
Modifier and Type | Method and Description |
---|---|
void |
initialize(java.security.spec.AlgorithmParameterSpec params)
Initializes this PssKeyPairGenerator with the given RSAPssParameterSpec.
|
void |
initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes this RSAPssKeyPairGenerator with given RSAPssParameterSpec and
random number generator.
|
void |
initialize(int strength,
java.security.spec.AlgorithmParameterSpec params)
Initializes the RSAKeyPairGenerator for generating keys with the given
length and PSS parameters.
|
void |
initialize(int strength,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom)
Initializes the RSAKeyPairGenerator for a certain key length with the given
random number generator and PSS parameters.
|
void |
initialize(int strength,
java.math.BigInteger publicExponent,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom)
Initializes the key pair generator using the specified "strength" (desired
key length in bits), public exponent, source of random bits, and PSS
parameters.
|
void initialize(int strength, java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidParameterException
PssKeyPairGenerator
is required:
PssKeyPairGenerator keyGen = (PssKeyPairGenerator)KeyPairGenerator.getInstance("RSASSA-PSS", "IAIK"); keyGen.initialize(strength, pssParamSpec); ...
strength
- the length of the key in bits.params
- the PSS parameters to be set for the RSASSA-PSS keysjava.security.InvalidParameterException
- if the supplied parameters do not represent PSS
parameters
void initialize(int strength, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom secureRandom) throws java.security.InvalidParameterException
PssKeyPairGenerator
is required:
PssKeyPairGenerator keyGen = (PssKeyPairGenerator)KeyPairGenerator.getInstance("RSASSA-PSS", "IAIK"); keyGen.initialize(strength, pssParamSpec, secureRandom); ...
strength
- the length of the key in bits.params
- the PSS parameters to be set for the RSASSA-PSS keyssecureRandom
- the random number generatorjava.security.InvalidParameterException
- if the supplied parameters do not represent PSS
parameters
void initialize(int strength, java.math.BigInteger publicExponent, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom secureRandom) throws java.security.InvalidParameterException
PssKeyPairGenerator
is required:
PssKeyPairGenerator keyGen = (PssKeyPairGenerator)KeyPairGenerator.getInstance("RSASSA-PSS", "IAIK"); keyGen.initialize(strength, publicExponent, pssParamSpec, secureRandom); ...
strength
- keyLength the length of the key in bits.publicExponent
- the public exponentparams
- the PSS parameters to be set for the RSASSA-PSS keyssecureRandom
- the random seedjava.security.InvalidParameterException
- if the supplied parameters do not represent PSS
parameters
void initialize(java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidAlgorithmParameterException
params
- the RSAPssParameterSpec for initializing this generatorjava.security.InvalidAlgorithmParameterException
- if the given parameter specification is not a
RSAPssParameterSpecvoid initialize(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
params
- the RSAPssParameterSpec for initializing this generatorrandom
- the SecureRandom for generating random numbersjava.security.InvalidAlgorithmParameterException
- if the given parameter specification is not a
RSAPssParameterSpec