Class SecretReferenceFieldValidator

  • All Implemented Interfaces:
    Serializable, FieldValidator

    public class SecretReferenceFieldValidator
    extends Object
    implements FieldValidator

    This validator checks that the value of a field is a valid secret reference.

    The format must be OBF:MGR:{secretManagerId}:{secretId}.

    Since:
    11.0
    See Also:
    Serialized Form
    • Constructor Detail

      • SecretReferenceFieldValidator

        public SecretReferenceFieldValidator()
    • Method Detail

      • validate

        public void validate​(Field field)
                      throws ValidationException

        Validate if the fieldValue string represents a valid secret reference.

        The format must be OBF:MGR:{secretManagerId}:{secretId}.

        Specified by:
        validate in interface FieldValidator
        Parameters:
        field - the field (name and value) to validate.
        Throws:
        ValidationException - if the field is invalid.