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 thejava.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) 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[]) encrypt(byte[])
-   returns the encrypted byte arary for the given byte array input.
  
-   getAlgorithm() getAlgorithm()
-   returns the String "RSA"
  
-   getEncoded() getEncoded()
-   returns the encoding.
  
-   getExponent() getExponent()
-   returns the exponent of the RSA key
  
-   getFormat() getFormat()
-   returns the String "ASN1"
  
-   getModulus() getModulus()
-   returns the modulus of the RSA key
   
 RSAPrivateKeyImpl
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
getExponent
 public BigInteger getExponent()
  -  returns the exponent of the RSA key
 
 getModulus
getModulus
 public BigInteger getModulus()
  -  returns the modulus of the RSA key
 
 getAlgorithm
getAlgorithm
 public String getAlgorithm()
  -  returns the String "RSA"
 
 getFormat
getFormat
 public String getFormat()
  -  returns the String "ASN1"
 
 getEncoded
getEncoded
 public byte[] getEncoded()
  -  returns the encoding.
 
 encrypt
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