All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.provider.RSAPubKey

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

public class RSAPubKey
extends Object
implements RSAPublicKey
A class for ABA RSA public keys.


Variable Index

 o exponent
The exponent component of the two part key that is required by the RSA algorithm.
 o ident
 o modulus
The modulus component of the two part key that is required by the RSA algorithm.

Constructor Index

 o RSAPubKey()
Construct an empty RSAPubKey.
 o RSAPubKey(BigInteger, BigInteger)
Construct an RSAPubKey from two integral components.
 o RSAPubKey(byte[])
Construct an RSAPubKey from an X.509 encoded byte array

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()
Returns the modulus.
 o getPublicExponent()
Returns the public exponent.
 o toString()
Generate a String representation of this key.

Variables

 o ident
 public static final String ident
 o exponent
 protected BigInteger exponent
The exponent component of the two part key that is required by the RSA algorithm.

 o modulus
 protected BigInteger modulus
The modulus component of the two part key that is required by the RSA algorithm.

Constructors

 o RSAPubKey
 public RSAPubKey()
Construct an empty RSAPubKey.

 o RSAPubKey
 public RSAPubKey(BigInteger modulus,
                  BigInteger exponent)
Construct an RSAPubKey from two integral components.

Parameters:
modulus - The modulus value.
exponent - The exponent value.
 o RSAPubKey
 public RSAPubKey(byte encKey[])
Construct an RSAPubKey from an X.509 encoded byte array

Methods

 o getModulus
 public BigInteger getModulus()
Returns the modulus.

Returns:
the modulus
 o getPublicExponent
 public BigInteger getPublicExponent()
Returns the public exponent.

Returns:
the public 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 "X.509".

 o getEncoded
 public byte[] getEncoded()
Return an encoded representation for this key. Returns a DER encoded X.509 SubjectPublicKeyInfo block containing a RSAPublicKey as defined in PKCS#1.

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