Class Base64Constraint

    • Constructor Detail

      • Base64Constraint

        public Base64Constraint()
    • Method Detail

      • initialize

        public void initialize​(Base64 field)
        Specified by:
        initialize in interface javax.validation.ConstraintValidator<Base64,​Object>
      • hasError

        protected boolean hasError​(Object field,
                                   javax.validation.ConstraintValidatorContext cxt)
        This method returns true if any character is not a valid character in the Base64 alphabet. More information of used method could be found here: https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/binary/Base64.html#isBase64-java.lang.String-
        Specified by:
        hasError in class AbstractConstraint