Package org.cyclos.impl.access
Class PasswordServiceImpl.CharsetValidation
- java.lang.Object
-
- org.cyclos.impl.utils.validation.validations.BasePropertyValidation
-
- org.cyclos.impl.access.PasswordServiceImpl.CharsetValidation
-
- All Implemented Interfaces:
PropertyValidation
- Enclosing class:
- PasswordServiceImpl
protected class PasswordServiceImpl.CharsetValidation extends BasePropertyValidation
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.utils.validation.validations.BasePropertyValidation
error
-
-
Constructor Summary
Constructors Constructor Description CharsetValidation(PasswordCharacterPolicy policy, String charset, MessageKey errorKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisValid(Object object, Object property, Object value)Should be implemented to return whether the value is valid.-
Methods inherited from class org.cyclos.impl.utils.validation.validations.BasePropertyValidation
getConversionHandler, getEntityManagerHandler, handleEmpty, validate
-
-
-
-
Constructor Detail
-
CharsetValidation
public CharsetValidation(PasswordCharacterPolicy policy, String charset, MessageKey errorKey)
-
-
Method Detail
-
isValid
protected boolean isValid(Object object, Object property, Object value)
Description copied from class:BasePropertyValidationShould be implemented to return whether the value is valid. If the value is valid, theBasePropertyValidation.validate(Object, Object, Object)method will return null. Otherwise, will return theValidationErrorreceived on the constructor (or a general validation error if none was passed)- Specified by:
isValidin classBasePropertyValidation
-
-