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