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