public interface PublicKeyVerify
Digital Signatures provide functionality of signing data and verification of the signatures.
The functionality of Digital Signatures is represented a pair of primitives (interfaces)
PublicKeySign for signing of data, and PublicKeyVerify for verification of
signatures. Implementations of these interfaces are secure against adaptive chosen-message
attacks. Signing data ensures the authenticity and the integrity of that data, but not its
secrecy.
| Modifier and Type | Method and Description |
|---|---|
void |
verify(byte[] signature,
byte[] data)
Verifies whether
signature is a valid signature for data. |
void verify(byte[] signature,
byte[] data)
throws GeneralSecurityException
signature is a valid signature for data.GeneralSecurityException - if signature is not a valid signature for data