@Immutable public final class LegacyFullVerify extends Object implements PublicKeyVerify
| Modifier and Type | Method and Description |
|---|---|
static PublicKeyVerify |
create(LegacyProtoKey key)
Creates the full primitive corresponding to the key.
|
void |
verify(byte[] signature,
byte[] data)
Verifies whether
signature is a valid signature for data. |
public static PublicKeyVerify create(LegacyProtoKey key) throws GeneralSecurityException
GeneralSecurityExceptionpublic void verify(byte[] signature,
byte[] data)
throws GeneralSecurityException
PublicKeyVerifysignature is a valid signature for data.verify in interface PublicKeyVerifyGeneralSecurityException - if signature is not a valid signature for data