java.security.Key
, java.security.KeyFactory
, KeySpec
, PKCS8EncodedKeySpec
, RSAPublicKeySpec
, RSAPrivateCrtKeySpec
Modifier and Type | Field and Description |
---|---|
private final BigInteger | |
private final AlgorithmParameterSpec | |
private final BigInteger |
Access | Constructor and Description |
---|---|
public | RSAPrivateKeySpec(BigInteger
the modulus modulus, BigInteger the private exponent privateExponent)Creates a new RSAPrivateKeySpec. |
public | RSAPrivateKeySpec(BigInteger
the modulus modulus, BigInteger the private exponent privateExponent, AlgorithmParameterSpec the parameters associated with this key, may be null params)Creates a new RSAPrivateKeySpec with additional key parameters. |
Modifier and Type | Method and Description |
---|---|
public BigInteger | |
public AlgorithmParameterSpec | Returns: the parameters associated with this keyReturns the parameters associated with this key, may be null if not present. |
public BigInteger |
modulus | back to summary |
---|---|
private final BigInteger modulus |
params | back to summary |
---|---|
private final AlgorithmParameterSpec params |
privateExponent | back to summary |
---|---|
private final BigInteger privateExponent |
RSAPrivateKeySpec | back to summary |
---|---|
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) Creates a new RSAPrivateKeySpec.
|
RSAPrivateKeySpec | back to summary |
---|---|
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent, AlgorithmParameterSpec params) Creates a new RSAPrivateKeySpec with additional key parameters.
|
getModulus | back to summary |
---|---|
public BigInteger getModulus() Returns the modulus.
|
getParams | back to summary |
---|---|
public AlgorithmParameterSpec getParams() Returns the parameters associated with this key, may be null if not present.
|
getPrivateExponent | back to summary |
---|---|
public BigInteger getPrivateExponent() Returns the private exponent.
|