gnu.crypto.key.rsa
public abstract class GnuRSAKey extends Object implements Key, RSAKey
A base asbtract class for both public and private RSA keys.
Version: $Revision: 1.4 $
Constructor Summary | |
---|---|
protected | GnuRSAKey(BigInteger n, BigInteger e) Trivial protected constructor. |
Method Summary | |
---|---|
boolean | equals(Object obj) Returns |
String | getAlgorithm() |
BigInteger | getE() Same as getPublicExponent. |
byte[] | getEncoded() |
abstract byte[] | getEncoded(int format) |
String | getFormat() |
BigInteger | getModulus() |
BigInteger | getN() Returns the modulus |
BigInteger | getPublicExponent() Returns the public exponent |
Trivial protected constructor.
Parameters: n the public modulus n
. e the public exponent e
.
Returns true
if the designated object is an instance of
RSAKey and has the same RSA parameter values as this one.
Parameters: obj the other non-null RSA key to compare to.
Returns: true
if the designated object is of the same type and
value as this one.
Same as getPublicExponent.
Returns: the public exponent e
.
Deprecated: see getEncoded(int).
Returns the modulus n
.
Returns: the modulus n
.
Returns the public exponent e
.
Returns: the public exponent e
.