public interface CredentialsService
| Modifier and Type | Field and Description |
|---|---|
static int |
adminId
It is prohibited to remove or alter the user with id 3.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHashedPassword(User user)
Return a string with hashed representation of password.
|
boolean |
isProtected(Long userId)
Is user with given id protected from being removed or modified?
|
boolean |
isProtected(User user)
Is this user protected from being removed or modified?
|
static final int adminId
boolean isProtected(User user)
user - A user to checkboolean isProtected(Long userId)
userId - A user id to check