part6
Class RSAPublicKeyWithAppendix

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

public class RSAPublicKeyWithAppendix
extends SimpleRSAPublicKey

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


Constructor Summary
RSAPublicKeyWithAppendix(java.math.BigInteger n, java.math.BigInteger e)
           
RSAPublicKeyWithAppendix(SimpleRSAPublicKey key)
           
 
Method Summary
 boolean verify(java.math.BigInteger s, java.lang.String str, HashFunction hash)
          A method to validate the signature s of a string str using the hash function hash.
 
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

RSAPublicKeyWithAppendix

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

RSAPublicKeyWithAppendix

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

verify

public boolean verify(java.math.BigInteger s,
                      java.lang.String str,
                      HashFunction hash)
               throws java.lang.Exception
A method to validate the signature s of a string str using the hash function hash.

Throws:
Exception.
java.lang.Exception