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.
-
exponent
- The exponent component of the two part key that is
required by the RSA algorithm.
-
ident
-
-
modulus
- The modulus component of the two part key that is
required by the RSA algorithm.
-
RSAPubKey()
- Construct an empty RSAPubKey.
-
RSAPubKey(BigInteger, BigInteger)
- Construct an RSAPubKey from two integral components.
-
RSAPubKey(byte[])
- Construct an RSAPubKey from an X.509 encoded byte array
-
getAlgorithm()
- Return the algorithm for this key.
-
getEncoded()
- Return an encoded representation for this key.
-
getFormat()
- Return the format this key is in.
-
getModulus()
- Returns the modulus.
-
getPublicExponent()
- Returns the public exponent.
-
toString()
- Generate a String representation of this key.
ident
public static final String ident
exponent
protected BigInteger exponent
- The exponent component of the two part key that is
required by the RSA algorithm.
modulus
protected BigInteger modulus
- The modulus component of the two part key that is
required by the RSA algorithm.
RSAPubKey
public RSAPubKey()
- Construct an empty RSAPubKey.
RSAPubKey
public RSAPubKey(BigInteger modulus,
BigInteger exponent)
- Construct an RSAPubKey from two integral components.
- Parameters:
- modulus - The modulus value.
- exponent - The exponent value.
RSAPubKey
public RSAPubKey(byte encKey[])
- Construct an RSAPubKey from an X.509 encoded byte array
getModulus
public BigInteger getModulus()
- Returns the modulus.
- Returns:
- the modulus
getPublicExponent
public BigInteger getPublicExponent()
- Returns the public exponent.
- Returns:
- the public exponent
getAlgorithm
public String getAlgorithm()
- Return the algorithm for this key.
- Returns:
- the string RSA.
getFormat
public String getFormat()
- Return the format this key is in. This returns "X.509".
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
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