For the latest news and information visit The GNU Crypto project | ||
Prev Class | Next Class | Frames | No Frames | |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.crypto.key.rsa.GnuRSAKey
public abstract class GnuRSAKey
extends java.lang.Object
implements Key, RSAKey
Constructor Summary | |
|
Method Summary | |
boolean |
|
String | |
BigInteger |
|
byte[] |
|
byte[] |
|
String | |
BigInteger | |
BigInteger |
|
BigInteger |
|
protected GnuRSAKey(BigInteger n, BigInteger e)
Trivial protected constructor.
- Parameters:
n
- the public modulusn
.e
- the public exponente
.
public boolean equals(Object obj)
Returnstrue
if the designated object is an instance ofRSAKey
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.
public String getAlgorithm()
public byte[] getEncoded()
Deprecated. see getEncoded(int).
public byte[] getEncoded(int format)
public String getFormat()
public BigInteger getModulus()
public BigInteger getN()
Returns the modulusn
.
- Returns:
- the modulus
n
.
public BigInteger getPublicExponent()
Returns the public exponente
.
- Returns:
- the public exponent
e
.