de.flexiprovider.core.rsa.interfaces
Class RSAPrivateKey

java.lang.Object
  |
  +--de.flexiprovider.api.keys.PrivateKey
        |
        +--de.flexiprovider.core.rsa.interfaces.RSAPrivateKey
All Implemented Interfaces:
Key, java.security.Key, java.security.PrivateKey, RSAKey, java.security.interfaces.RSAKey, java.security.interfaces.RSAPrivateKey, java.io.Serializable
Direct Known Subclasses:
RSAPrivateCrtKey, RSAPrivateKey

public abstract class RSAPrivateKey
extends PrivateKey
implements RSAKey, java.security.interfaces.RSAPrivateKey

See Also:
Serialized Form

Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
RSAPrivateKey()
           
 
Method Summary
 java.lang.String getAlgorithm()
           
abstract  FlexiBigInt getD()
           
 java.math.BigInteger getModulus()
           
 java.math.BigInteger getPrivateExponent()
           
 
Methods inherited from class de.flexiprovider.api.keys.PrivateKey
getAlgParams, getEncoded, getFormat, getKeyData, getOID
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.flexiprovider.core.rsa.interfaces.RSAKey
getN
 
Methods inherited from interface java.security.Key
getEncoded, getFormat
 

Constructor Detail

RSAPrivateKey

public RSAPrivateKey()
Method Detail

getModulus

public final java.math.BigInteger getModulus()
Specified by:
getModulus in interface java.security.interfaces.RSAKey
Returns:
the modulus n

getPrivateExponent

public final java.math.BigInteger getPrivateExponent()
Specified by:
getPrivateExponent in interface java.security.interfaces.RSAPrivateKey
Returns:
the private exponent d

getAlgorithm

public final java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key
Returns:
name of the algorithm - "RSA"

getD

public abstract FlexiBigInt getD()
Returns:
the private exponent d