public class RSAPrivateKey extends Key
Constructor and Description |
---|
RSAPrivateKey(byte[] e,
byte[] d,
byte[] n)
Creates a new RSAPublicKey object, given the public and private exponents and the modulus.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getModulus()
Returns a copy of the byte array containing the modulus.
|
byte[] |
getPrivateExponent()
Returns a copy of the byte array containing the private exponent.
|
byte[] |
getPublicExponent()
Returns a copy of the byte array containing the public exponent.
|
public RSAPrivateKey(byte[] e, byte[] d, byte[] n)
e
- A byte array containing the public exponent.d
- A byte array containing the private exponent.n
- A byte array containing the modulus.public byte[] getModulus()
public byte[] getPublicExponent()
public byte[] getPrivateExponent()