public class PKCS1Signature extends Signature
Modifier and Type | Field and Description |
---|---|
protected Digest |
digest |
key, operation, OPERATION_SIGN, OPERATION_VERIFY
Constructor and Description |
---|
PKCS1Signature(Digest digest)
Creates a new PKCS1Signature algorithm with the given message digest.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doReset() |
protected byte[] |
doSign(byte[] data) |
protected boolean |
doVerify(byte[] data,
byte[] signature) |
protected void |
finalize() |
java.lang.String |
getAlgorithm()
Returns the name of the algorithm.
|
protected boolean |
isKeySupported(Key key,
int operation) |
protected Digest digest
public PKCS1Signature(Digest digest) throws NoSuchAlgorithmException, CryptoException
digest
- The message digest.CryptoException
- If the given message digest is not supported.NoSuchAlgorithmException
- If no Provider supports a Signature implementation for the specified algorithm.public java.lang.String getAlgorithm()
getAlgorithm
in class Signature
protected boolean isKeySupported(Key key, int operation)
isKeySupported
in class Signature
protected void doReset() throws NoSuchAlgorithmException, CryptoException
doReset
in class Signature
NoSuchAlgorithmException
CryptoException
protected byte[] doSign(byte[] data) throws CryptoException
doSign
in class Signature
CryptoException
protected boolean doVerify(byte[] data, byte[] signature) throws CryptoException
doVerify
in class Signature
CryptoException
protected final void finalize()
finalize
in class java.lang.Object