part6
Class RSAPublicKeyWithRecovery

java.lang.Object
  extended bypart2.SimpleRSAPublicKey
      extended bypart6.RSAPublicKeyWithRecovery
All Implemented Interfaces:
RSAPublicKey

public class RSAPublicKeyWithRecovery
extends SimpleRSAPublicKey

A class that implements an RSA public key that can be used for signature verification using a digital signature scheme with message recovery.


Constructor Summary
RSAPublicKeyWithRecovery(java.math.BigInteger n, java.math.BigInteger e)
           
RSAPublicKeyWithRecovery(SimpleRSAPublicKey key)
           
 
Method Summary
 java.math.BigInteger recover(java.math.BigInteger s, Redundancy redundancy)
          A method to recover a value from a signature s using the redundancy object redundancy.
 boolean verify(java.math.BigInteger s, Redundancy redundancy)
          A method to validate a signature s using the redundancy object redundancy.
 
Methods inherited from class part2.SimpleRSAPublicKey
encrypt, encrypt, modulus, publicExponent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RSAPublicKeyWithRecovery

public RSAPublicKeyWithRecovery(java.math.BigInteger n,
                                java.math.BigInteger e)
                         throws java.lang.Exception

RSAPublicKeyWithRecovery

public RSAPublicKeyWithRecovery(SimpleRSAPublicKey key)
                         throws java.lang.Exception
Method Detail

verify

public boolean verify(java.math.BigInteger s,
                      Redundancy redundancy)
               throws java.lang.Exception
A method to validate a signature s using the redundancy object redundancy.

Throws:
Exception.
java.lang.Exception

recover

public java.math.BigInteger recover(java.math.BigInteger s,
                                    Redundancy redundancy)
                             throws java.lang.Exception
A method to recover a value from a signature s using the redundancy object redundancy.

Throws:
Exception.
java.lang.Exception