public static boolean checkJBCrypt(String data, String hash) {
        Objects.requireNonNull(data, Required.DATA.toString());
        Objects.requireNonNull(hash, Required.HASH.toString());
        
        return BCrypt.checkpw(data, hash);
    }
public static boolean checkJBCrypt ( String data , String hash ) { Objects . requireNonNull ( data , Required . DATA . toString ( ) ) ; Objects . requireNonNull ( hash , Required . HASH . toString ( ) ) ; return BCrypt . checkpw ( data , hash ) ; }
Checks a given data against a JBCrypted hash

@param data The cleartext data
@param hash The JBCrypt hashed value
@return True if it is a match, false otherwise