Module de.powerstat.validation
Interface IUsernameStrategy
- All Known Implementing Classes:
UsernameConfigurableStrategy,UsernameDefaultStrategy
public interface IUsernameStrategy
Username strategy interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidationStrategy(String username) Validation strategy.
-
Method Details
-
validationStrategy
Validation strategy.- Parameters:
username- Username- Returns:
- true: if username is an email, false otherwise
- Throws:
IllegalArgumentException- If the username does not match the configured parameters
-