class OIDValidator implements ValueValidator {

    @Override
    public void validate(String oid) throws XDSMetaDataException {
        notNull(oid, "oid cannot be null");
        
        metaDataAssert(oid.length() <= 64, OID_TOO_LONG, oid);
        metaDataAssert(OID_PATTERN.matcher(oid).matches(), INVALID_OID, oid);
    }

}