public class KeyGenerationParams
extends java.lang.Object
Provides the configuration information that is necessary when generating an asymmetric key pair, for example, the key type (key algorithm, key strength, and key parameters).
KeyGenerationUtil| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKeyAlgorithm()
Gets the key algorithm of the key pair being generated.
|
java.security.spec.AlgorithmParameterSpec |
getKeyParams()
Gets the key parameters of the key pair being generated.
|
int |
getKeySizeBits()
Gets the key size (in bits) of the key pair being generated.
|
EntrustAsymKeyType |
getKeyType()
Gets the key type of the key pair being generated.
|
java.lang.String |
getKeyUsage()
Gets the key usage of the key pair being generated.
|
public java.lang.String getKeyAlgorithm()
public int getKeySizeBits()
public java.security.spec.AlgorithmParameterSpec getKeyParams()
Note: Only certain asymmetric key types support key parameters; for example RSA-based and DSA-based key types do not contain key parameters, but EC-based key types do contain key parameters
null
for asymmetric key types that do not contain key parameterspublic EntrustAsymKeyType getKeyType()
The key type contains the key algorithm, key size (in bits) and key parameters in a single identifier.
public java.lang.String getKeyUsage()
The key usage indicates what type of cryptographic operations the key pair can be used for. Currently supported key usage values are: