Package dev.sigstore.tuf.encryption
Interface Verifier
-
public interface VerifierA verifier interface specifying verification for a raw artifact (no hashing).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanverify(byte[] artifact, byte[] signature)Verify an artifact.
-
-
-
Method Detail
-
verify
boolean verify(byte[] artifact, byte[] signature) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.SignatureExceptionVerify an artifact. Implementations may hash the artifact with sha256 before verifying unless they have an implicit hashing algorithm.- Parameters:
artifact- the artifact that was signedsignature- the signature associated with the artifact- Returns:
- true if the signature is valid, false otherwise
- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.InvalidKeyExceptionjava.security.SignatureException
-
-