|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.crypto.key.rsa.GnuRSAKey
A base asbtract class for both public and private RSA keys.
Field Summary |
Fields inherited from interface java.security.Key |
serialVersionUID |
Constructor Summary | |
protected |
GnuRSAKey(java.math.BigInteger n,
java.math.BigInteger e)
Trivial protected constructor. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if the designated object is an instance of
RSAKey and has the same RSA parameter values as this one. |
java.lang.String |
getAlgorithm()
|
java.math.BigInteger |
getE()
Same as getPublicExponent() . |
byte[] |
getEncoded()
Deprecated. see getEncoded(int). |
abstract byte[] |
getEncoded(int format)
|
java.lang.String |
getFormat()
|
java.math.BigInteger |
getModulus()
|
java.math.BigInteger |
getN()
Returns the modulus n . |
java.math.BigInteger |
getPublicExponent()
Returns the public exponent e . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected GnuRSAKey(java.math.BigInteger n, java.math.BigInteger e)
Trivial protected constructor.
n
- the public modulus n
.e
- the public exponent e
.Method Detail |
public java.math.BigInteger getModulus()
getModulus
in interface java.security.interfaces.RSAKey
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public java.math.BigInteger getN()
Returns the modulus n
.
n
.public java.math.BigInteger getPublicExponent()
Returns the public exponent e
.
e
.public java.math.BigInteger getE()
Same as getPublicExponent()
.
e
.public boolean equals(java.lang.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.public abstract byte[] getEncoded(int format)
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |