Code example for Signature

Methods: update, verify

0
 
        public boolean verify(byte[] digest, byte[] expected)
        { 
            try 
            { 
                rawSignature.update(digest);
 
                return rawSignature.verify(expected);
            } 
            catch (SignatureException e)
            { 
                throw new RuntimeOperatorException("exception obtaining raw signature: " + e.getMessage(), e);
            } 
        } 
    } 
 
    private class SignatureOutputStream 
        extends OutputStream
    { 
        private Signature sig;