Package org.openurp.app.security.service
Class RemoteAuthorizer
java.lang.Object
org.beangle.security.authz.AbstractRoleBasedAuthorizer
org.openurp.app.security.service.RemoteAuthorizer
- All Implemented Interfaces:
org.beangle.commons.bean.Initializing,org.beangle.security.authz.Authorizer
public class RemoteAuthorizer
extends org.beangle.security.authz.AbstractRoleBasedAuthorizer
根据REST接口查找root用户和资源
http://localhost:8080/platform/user/accounts/root.json
http://localhost:8080/platform/security/func/edu-lesson-adminapp/resources.json
-
Field Summary
Fields inherited from class org.beangle.security.authz.AbstractRoleBasedAuthorizer
domain, refreshSeconds, unknownIsProtected -
Constructor Summary
Constructors Constructor Description RemoteAuthorizer() -
Method Summary
Modifier and Type Method Description protected org.beangle.security.authz.AuthorityDomainfetchDomain()static List<org.beangle.security.authz.Authority>getResources()static Set<String>getRoots()static List<org.beangle.security.authz.Authority>toAuthorities(String resources)Methods inherited from class org.beangle.security.authz.AbstractRoleBasedAuthorizer
getScope, init, isPermitted, isPermitted, isRoot, setDomain, setRefreshSeconds, setUnknownIsProtected
-
Constructor Details
-
RemoteAuthorizer
public RemoteAuthorizer()
-
-
Method Details
-
fetchDomain
protected org.beangle.security.authz.AuthorityDomain fetchDomain()- Specified by:
fetchDomainin classorg.beangle.security.authz.AbstractRoleBasedAuthorizer
-
getRoots
-
getResources
-
toAuthorities
-