public class AuthzImpl extends Object implements Authz
| Constructor and Description |
|---|
AuthzImpl() |
| 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()
implementation of AuthenticationTag
|
boolean |
noneGranted(String roles)
none the listed roles must be granted to return true, otherwise false;
|
void |
setAppCtx(ApplicationContext appCtx)
test case can use this class to mock application context with aclManager bean in it.
|
public boolean allGranted(String roles)
AuthzallGranted in interface Authzroles - - comma separate GrantedAuthorityspublic boolean anyGranted(String roles)
AuthzanyGranted in interface Authzroles - - comma separate GrantedAuthorityspublic ApplicationContext getAppCtx()
Authzpublic String getPrincipal()
getPrincipal in interface Authzpublic boolean noneGranted(String roles)
AuthznoneGranted in interface Authzroles - - comma separate GrantedAuthorityspublic void setAppCtx(ApplicationContext appCtx)