|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.net.aba.crypto.provider.RSAPubKey
A class for ABA RSA public keys.
Field Summary | |
protected java.math.BigInteger |
exponent
The exponent component of the two part key that is required by the RSA algorithm. |
static java.lang.String |
ident
|
protected java.math.BigInteger |
modulus
The modulus component of the two part key that is required by the RSA algorithm. |
Constructor Summary | |
RSAPubKey()
Construct an empty RSAPubKey. |
|
RSAPubKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
Construct an RSAPubKey from two integral components. |
|
RSAPubKey(byte[] encKey)
Construct an RSAPubKey from an X.509 encoded byte array |
Method Summary | |
java.lang.String |
getAlgorithm()
Return the algorithm for this key. |
byte[] |
getEncoded()
Return an encoded representation for this key. |
java.lang.String |
getFormat()
Return the format this key is in. |
java.math.BigInteger |
getModulus()
Returns the modulus. |
java.math.BigInteger |
getPublicExponent()
Returns the public exponent. |
java.lang.String |
toString()
Generate a String representation of this key. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String ident
protected java.math.BigInteger exponent
protected java.math.BigInteger modulus
Constructor Detail |
public RSAPubKey()
public RSAPubKey(java.math.BigInteger modulus, java.math.BigInteger exponent)
modulus
- The modulus value.exponent
- The exponent value.public RSAPubKey(byte[] encKey)
Method Detail |
public java.math.BigInteger getModulus()
public java.math.BigInteger getPublicExponent()
public java.lang.String getAlgorithm()
public java.lang.String getFormat()
public byte[] getEncoded()
getFormat()
,
toString()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |