All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.RSAPrivKey

java.lang.Object
   |
   +----au.net.aba.crypto.provider.RSAPrivKey

public class RSAPrivKey
extends Object
implements RSAPrivateKey
A class for ABA RSA private keys.


Variable Index

 o d
The private exponent of this key.
 o ident
 o modulus
The modulus of this key.

Constructor Index

 o RSAPrivKey()
Construct an empty RSAPrivKey.
 o RSAPrivKey(BigInteger, BigInteger)

Method Index

 o getAlgorithm()
Return the algorithm for this key.
 o getEncoded()
Return an encoded representation for this key.
 o getFormat()
Return the format this key is in.
 o getModulus()
Return the modulus.
 o getPrivateExponent()
Return the private exponent
 o toString()
Generate a String representation of this key.

Variables

 o ident
 public static final String ident
 o modulus
 protected BigInteger modulus
The modulus of this key.

 o d
 protected BigInteger d
The private exponent of this key.

Constructors

 o RSAPrivKey
 public RSAPrivKey()
Construct an empty RSAPrivKey.

 o RSAPrivKey
 public RSAPrivKey(BigInteger modulus,
                   BigInteger privateExponent)

Methods

 o getModulus
 public BigInteger getModulus()
Return the modulus.

Returns:
the modulus.
 o getPrivateExponent
 public BigInteger getPrivateExponent()
Return the private exponent

Returns:
the private exponent.
 o getAlgorithm
 public String getAlgorithm()
Return the algorithm for this key.

Returns:
the string RSA.
 o getFormat
 public String getFormat()
Return the format this key is in. This returns "ABA" which indicates the encoded key is the form of a byte array whose contents form the string "modulus.exponent" (ie the String returned from the toString() method. This format is compatible with the AsciiEncodedKeySpec.

 o getEncoded
 public byte[] getEncoded()
Return an encoded representation for this key. Returns a byte array that forms the string "modulus.exponent".

See Also:
getFormat, toString
 o toString
 public String toString()
Generate a String representation of this key.

Returns:
The key as a string.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index