part6
Class RSAPrivateKeyWithRecovery

java.lang.Object
  extended bypart2.SimpleRSAPrivateKey
      extended bypart6.RSAPrivateKeyWithRecovery
All Implemented Interfaces:
RSAPrivateKey

public class RSAPrivateKeyWithRecovery
extends SimpleRSAPrivateKey

A class that implements an RSA private key that can be used for signature generation with a digital signature scheme with message recovery.


Constructor Summary
RSAPrivateKeyWithRecovery(java.math.BigInteger n, java.math.BigInteger d)
           
RSAPrivateKeyWithRecovery(SimpleRSAPrivateKey key)
           
 
Method Summary
 java.math.BigInteger sign(java.math.BigInteger x, Redundancy redundancy)
          A method to sign a big integer x using the redundancy object redundancy.
 
Methods inherited from class part2.SimpleRSAPrivateKey
decrypt, decrypt, modulus, privateExponent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RSAPrivateKeyWithRecovery

public RSAPrivateKeyWithRecovery(java.math.BigInteger n,
                                 java.math.BigInteger d)
                          throws java.lang.Exception

RSAPrivateKeyWithRecovery

public RSAPrivateKeyWithRecovery(SimpleRSAPrivateKey key)
                          throws java.lang.Exception
Method Detail

sign

public java.math.BigInteger sign(java.math.BigInteger x,
                                 Redundancy redundancy)
                          throws java.lang.Exception
A method to sign a big integer x using the redundancy object redundancy.

Throws:
Exception.
java.lang.Exception