1 /*
2 * Copyright (C) 2020-2022 Dipl.-Inform. Kai Hofmann. All rights reserved!
3 */
4 package de.powerstat.validation.values.strategies;
5
6
7 /**
8 * Username strategy interface.
9 */
10 public interface IUsernameStrategy
11 {
12 /**
13 * Validation strategy.
14 *
15 * @param username Username
16 * @return true: if username is an email, false otherwise
17 * @throws IllegalArgumentException If the username does not match the configured parameters
18 */
19 boolean validationStrategy(String username);
20
21 }