Class Base64Constraint
- java.lang.Object
-
- com.github.damianwajser.validator.constraint.AbstractConstraint
-
- com.github.damianwajser.validator.constraint.strings.Base64Constraint
-
public class Base64Constraint extends AbstractConstraint implements javax.validation.ConstraintValidator<Base64,Object>
-
-
Field Summary
-
Fields inherited from class com.github.damianwajser.validator.constraint.AbstractConstraint
excludes, isNulleable, onlyIn
-
-
Constructor Summary
Constructors Constructor Description Base64Constraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhasError(Object field, javax.validation.ConstraintValidatorContext cxt)This method returns true if any character is not a valid character in the Base64 alphabet.voidinitialize(Base64 field)-
Methods inherited from class com.github.damianwajser.validator.constraint.AbstractConstraint
currentHttpMethodIsSkippeable, getCurrentHttpMethod, getCurrentHttpRequest, initialize, isValid
-
-
-
-
Method Detail
-
initialize
public void initialize(Base64 field)
-
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:
hasErrorin classAbstractConstraint
-
-