Interface Verifier


  • public interface Verifier
    A verifier interface specifying verification for a raw artifact (no hashing).
    • Method Detail

      • verify

        boolean verify​(byte[] artifact,
                       byte[] signature)
                throws java.security.NoSuchAlgorithmException,
                       java.security.InvalidKeyException,
                       java.security.SignatureException
        Verify an artifact. Implementations may hash the artifact with sha256 before verifying unless they have an implicit hashing algorithm.
        Parameters:
        artifact - the artifact that was signed
        signature - the signature associated with the artifact
        Returns:
        true if the signature is valid, false otherwise
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.InvalidKeyException
        java.security.SignatureException