net.handle.security
Class RSAPrivateKeyImpl

java.lang.Object
  extended by net.handle.security.RSAPrivateKeyImpl
All Implemented Interfaces:
java.io.Serializable, java.security.interfaces.RSAKey, java.security.interfaces.RSAPrivateKey, java.security.Key, java.security.PrivateKey
Direct Known Subclasses:
RSAPrivateCrtKeyImpl

public class RSAPrivateKeyImpl
extends java.lang.Object
implements java.security.interfaces.RSAPrivateKey

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.security.interfaces.RSAPrivateKey
serialVersionUID
 
Constructor Summary
RSAPrivateKeyImpl(java.math.BigInteger m, java.math.BigInteger exp)
           
 
Method Summary
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.math.BigInteger getModulus()
           
 java.math.BigInteger getPrivateExponent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAPrivateKeyImpl

public RSAPrivateKeyImpl(java.math.BigInteger m,
                         java.math.BigInteger exp)
                  throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException
Method Detail

getModulus

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

getPrivateExponent

public java.math.BigInteger getPrivateExponent()
Specified by:
getPrivateExponent in interface java.security.interfaces.RSAPrivateKey

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key