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