gnu.crypto.key.rsa
Class GnuRSAKey
- Key, RSAKey
public abstract class GnuRSAKey
implements Key, RSAKey
A base asbtract class for both public and private RSA keys.
GnuRSAKey(BigInteger n, BigInteger e) - Trivial protected constructor.
|
GnuRSAKey
protected GnuRSAKey(BigInteger n,
BigInteger e)
Trivial protected constructor.
n
- the public modulus n
.e
- the public exponent e
.
equals
public boolean equals(Object obj)
Returns true
if the designated object is an instance of
RSAKey
and has the same RSA parameter values as this one.
obj
- the other non-null RSA key to compare to.
true
if the designated object is of the same type and
value as this one.
getAlgorithm
public String getAlgorithm()
getE
public BigInteger getE()
getEncoded
public byte[] getEncoded()
see getEncoded(int).
getEncoded
public abstract byte[] getEncoded(int format)
getFormat
public String getFormat()
getModulus
public BigInteger getModulus()
getN
public BigInteger getN()
Returns the modulus n
.
getPublicExponent
public BigInteger getPublicExponent()
Returns the public exponent e
.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.