public interface ExtendedSignature
This interface is provided because the java.security.Signature
class does not provide access to the underlying digest value. All Entrust
digital signature algorithm implementations implement this interface.
DigitalSignature| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDigest()
Deprecated.
Returns the digest that was calculated during signature generation or
verification.
|
byte[] getDigest()
During both a signature generation and verification operation a digest is
calculated over the message; this digest is then used as an input to the
signature generation or verification process. This API simply provides
access to the digest once it has been calculated; it always returns the
digest from the last operation. If a signature generation or verification
operation has not yet been executed or is in the process of being
executed, null is returned.
To ensure a non-null result, this method should only be called after
Signature.sign() or Signature.verify() has
called.
Fips140ErrorStateException - [FIPS 140-2 status output] thrown if the Toolkit is not
allowed to perform cryptographic operations