All Packages Class Hierarchy This Package Previous Next Index
Class w3c.crypto.us.dsig.RSAPrivateKeyImpl
java.lang.Object
|
+----w3c.crypto.us.dsig.RSAPrivateKeyImpl
- public class RSAPrivateKeyImpl
- extends Object
- implements RSAPrivateKey
An implementation of the
java.security.interfaces.RSAPrivatecKey
interface. This was written because generating a RSA private key
from given parameters using the JDK implementation in the Sun
provider is not possible by via the security interfaces (BUG!).
- See Also:
- RSAPublicKeyImpl
-
RSAPrivateKeyImpl(BigInteger, BigInteger, BigInteger)
- Create a new RSA private key from the given private exponent d, given
public exponent e, and given modulus n.
-
encrypt(byte[])
- returns the encrypted byte arary for the given byte array input.
-
getAlgorithm()
- returns the String "RSA"
-
getEncoded()
- returns the encoding.
-
getExponent()
- returns the exponent of the RSA key
-
getFormat()
- returns the String "ASN1"
-
getModulus()
- returns the modulus of the RSA key
RSAPrivateKeyImpl
public RSAPrivateKeyImpl(BigInteger d,
BigInteger e,
BigInteger n)
- Create a new RSA private key from the given private exponent d, given
public exponent e, and given modulus n.
getExponent
public BigInteger getExponent()
- returns the exponent of the RSA key
getModulus
public BigInteger getModulus()
- returns the modulus of the RSA key
getAlgorithm
public String getAlgorithm()
- returns the String "RSA"
getFormat
public String getFormat()
- returns the String "ASN1"
getEncoded
public byte[] getEncoded()
- returns the encoding.
encrypt
public byte[] encrypt(byte signMe[]) throws SignatureException
- returns the encrypted byte arary for the given byte array input.
- Throws: SignatureException
- if an error occurs during signature
generation.
All Packages Class Hierarchy This Package Previous Next Index