public interface Authz
Modifier and Type | Method and Description |
---|---|
boolean |
allGranted(String roles)
all the listed roles must be granted to return true, otherwise false;
|
boolean |
anyGranted(String roles)
any the listed roles must be granted to return true, otherwise false;
|
ApplicationContext |
getAppCtx()
get Spring application context which contains
|
String |
getPrincipal()
return the principal's name, supports the various type of principals that can exist in the
Authentication object, such as a String or UserDetails instance |
boolean |
noneGranted(String roles)
none the listed roles must be granted to return true, otherwise false;
|
void |
setAppCtx(ApplicationContext appCtx)
set Spring application context which contains Acegi related bean
|
boolean allGranted(String roles)
roles
- - comma separate GrantedAuthoritysboolean anyGranted(String roles)
roles
- - comma separate GrantedAuthoritysApplicationContext getAppCtx()
String getPrincipal()
Authentication
object, such as a String or UserDetails
instanceboolean noneGranted(String roles)
roles
- - comma separate GrantedAuthoritysvoid setAppCtx(ApplicationContext appCtx)