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.
-
d
- The private exponent of this key.
-
ident
-
-
modulus
- The modulus of this key.
-
RSAPrivKey()
- Construct an empty RSAPrivKey.
-
RSAPrivKey(BigInteger, BigInteger)
-
-
getAlgorithm()
- Return the algorithm for this key.
-
getEncoded()
- Return an encoded representation for this key.
-
getFormat()
- Return the format this key is in.
-
getModulus()
- Return the modulus.
-
getPrivateExponent()
- Return the private exponent
-
toString()
- Generate a String representation of this key.
ident
public static final String ident
modulus
protected BigInteger modulus
- The modulus of this key.
d
protected BigInteger d
- The private exponent of this key.
RSAPrivKey
public RSAPrivKey()
- Construct an empty RSAPrivKey.
RSAPrivKey
public RSAPrivKey(BigInteger modulus,
BigInteger privateExponent)
getModulus
public BigInteger getModulus()
- Return the modulus.
- Returns:
- the modulus.
getPrivateExponent
public BigInteger getPrivateExponent()
- Return the private exponent
- Returns:
- the private 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 "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.
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
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