public static boolean checkSha(String value, String signature)
    {
        Check.notNull(signature);

        return Arrays.equals(getSha(value).getBytes(StandardCharsets.UTF_8),
                             signature.getBytes(StandardCharsets.UTF_8));
    }
public static boolean checkSha ( String value , String signature ) { Check . notNull ( signature ) ; return Arrays . equals ( getSha ( value ) . getBytes ( StandardCharsets . UTF_8 ) , signature . getBytes ( StandardCharsets . UTF_8 ) ) ; }
Compare a checksum with its supposed original value.

@param value The original value (must not be <code>null</code>).
@param signature The checksum value (must not be <code>null</code>).
@return <code>true</code> if corresponding (checksum of value is equal to its signature), <code>false</code>
else.
@throws LionEngineException If invalid arguments.