Class LegacyFullVerify
- java.lang.Object
-
- com.google.crypto.tink.signature.internal.LegacyFullVerify
-
- All Implemented Interfaces:
PublicKeyVerify
@Immutable public final class LegacyFullVerify extends java.lang.Object implements PublicKeyVerify
Takes an arbitrary raw PublicKeyVerify from the registry and creates a full PublicKeyVerify out of it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyVerifycreate(LegacyProtoKey key)Creates the full primitive corresponding to the key.voidverify(byte[] signature, byte[] data)Verifies whethersignatureis a valid signature fordata.
-
-
-
Method Detail
-
create
public static PublicKeyVerify create(LegacyProtoKey key) throws java.security.GeneralSecurityException
Creates the full primitive corresponding to the key.- Throws:
java.security.GeneralSecurityException
-
verify
public void verify(byte[] signature, byte[] data) throws java.security.GeneralSecurityExceptionDescription copied from interface:PublicKeyVerifyVerifies whethersignatureis a valid signature fordata.- Specified by:
verifyin interfacePublicKeyVerify- Throws:
java.security.GeneralSecurityException- ifsignatureis not a valid signature fordata
-
-