part6
Class RSAPublicKeyWithAppendix
java.lang.Object
part2.SimpleRSAPublicKey
part6.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RSAPublicKeyWithAppendix
public RSAPublicKeyWithAppendix(java.math.BigInteger n,
java.math.BigInteger e)
throws java.lang.Exception
RSAPublicKeyWithAppendix
public RSAPublicKeyWithAppendix(SimpleRSAPublicKey key)
throws java.lang.Exception
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