public final class UserAuthority extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.security.core.GrantedAuthority |
AUTHORITY_ROLE_ADMIN
authority admin
|
static org.springframework.security.core.GrantedAuthority |
AUTHORITY_ROLE_BACKEND
authority back-end
|
static org.springframework.security.core.GrantedAuthority |
AUTHORITY_ROLE_USER
authority user
|
static java.lang.String |
ROLE_ADMIN
admin role string
|
static java.lang.String |
ROLE_BACKEND
back-end role string
|
static java.lang.String |
ROLE_USER
user role string
|
| Constructor and Description |
|---|
UserAuthority() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.security.core.GrantedAuthority |
getGrantedAuthority(java.lang.String roleString) |
public static final java.lang.String ROLE_ADMIN
public static final java.lang.String ROLE_BACKEND
public static final java.lang.String ROLE_USER
public static final org.springframework.security.core.GrantedAuthority AUTHORITY_ROLE_ADMIN
public static final org.springframework.security.core.GrantedAuthority AUTHORITY_ROLE_BACKEND
public static final org.springframework.security.core.GrantedAuthority AUTHORITY_ROLE_USER
public UserAuthority()
public static org.springframework.security.core.GrantedAuthority getGrantedAuthority(java.lang.String roleString) throws java.lang.IllegalArgumentException
roleString - java.lang.IllegalArgumentException - on bad stringCopyright © 2015 Tampere University of Technology, Pori Department.