Class LegacyFullSign
- java.lang.Object
-
- com.google.crypto.tink.signature.internal.LegacyFullSign
-
- All Implemented Interfaces:
PublicKeySign
@Immutable public final class LegacyFullSign extends java.lang.Object implements PublicKeySign
Takes an arbitrary raw PublicKeySign from the registry and creates a full PublicKeySign out of it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeySigncreate(LegacyProtoKey key)Creates the full primitive corresponding to the key.byte[]sign(byte[] data)Computes the signature fordata.
-
-
-
Method Detail
-
create
public static PublicKeySign create(LegacyProtoKey key) throws java.security.GeneralSecurityException
Creates the full primitive corresponding to the key.- Throws:
java.security.GeneralSecurityException
-
sign
public byte[] sign(byte[] data) throws java.security.GeneralSecurityExceptionDescription copied from interface:PublicKeySignComputes the signature fordata.- Specified by:
signin interfacePublicKeySign- Returns:
- the signature of
data - Throws:
java.security.GeneralSecurityException
-
-