com.mindbright.security.publickey
Class RSAKey

java.lang.Object
  extended by com.mindbright.security.publickey.RSAKey
All Implemented Interfaces:
RSAKey, Key, java.io.Serializable
Direct Known Subclasses:
RSAPrivateKey, RSAPublicKey

public abstract class RSAKey
extends java.lang.Object
implements RSAKey, Key

See Also:
Serialized Form

Field Summary
protected  java.math.BigInteger modulus
           
 
Constructor Summary
protected RSAKey(java.math.BigInteger modulus)
           
 
Method Summary
 java.lang.String getAlgorithm()
          Get the algorithm name
 byte[] getEncoded()
          Get the key in its encoded form
 java.lang.String getFormat()
          Get the primary encoding format of this key.
 java.math.BigInteger getModulus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modulus

protected java.math.BigInteger modulus
Constructor Detail

RSAKey

protected RSAKey(java.math.BigInteger modulus)
Method Detail

getModulus

public java.math.BigInteger getModulus()
Specified by:
getModulus in interface RSAKey

getAlgorithm

public java.lang.String getAlgorithm()
Description copied from interface: Key
Get the algorithm name

Specified by:
getAlgorithm in interface Key
Returns:
the name of the algorithm this key supports

getEncoded

public byte[] getEncoded()
Description copied from interface: Key
Get the key in its encoded form

Specified by:
getEncoded in interface Key
Returns:
the key in its encoded form

getFormat

public java.lang.String getFormat()
Description copied from interface: Key
Get the primary encoding format of this key.

Specified by:
getFormat in interface Key
Returns:
the primary encoding format of the key