public interface CoffeeNetUserDetails
UserDetails is required for AbstractAuthenticationToken.getName() to work.| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
java.util.Set<java.lang.String> |
getAuthoritiesAsString()
Returns the authorities as a string set.
|
java.lang.String |
getEmail()
Returns the Email.
|
java.lang.String |
getUsername()
Returns the username.
|
boolean |
hasRoles(java.lang.String... roles)
Tests if the user has the provided roles.
|
boolean |
isCoffeeNetAdmin() |
boolean |
isMachineUser() |
java.lang.String getUsername()
java.lang.String getEmail()
boolean isCoffeeNetAdmin()
true if user is a CoffeeNet admin, otherwise falseboolean isMachineUser()
true if user is a machine admin, otherwise falseboolean hasRoles(java.lang.String... roles)
roles - totrue if user has all of the roles, otherwise falsejava.util.Set<java.lang.String> getAuthoritiesAsString()
java.util.Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()