class HashValidator implements ValueValidator {

    @Override
    public void validate(String value) throws XDSMetaDataException {
        notNull(value, "value cannot be null");
        metaDataAssert(HASH_PATTERN.matcher(value).matches(),
                INVALID_HASH_CODE, value);
    }

}