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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.beangle.security.authz.AuthorityDomain
     
    static List<org.beangle.security.authz.Authority>
     
    static Set<String>
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemoteAuthorizer

      public RemoteAuthorizer()
  • Method Details

    • fetchDomain

      protected org.beangle.security.authz.AuthorityDomain fetchDomain()
      Specified by:
      fetchDomain in class org.beangle.security.authz.AbstractRoleBasedAuthorizer
    • getRoots

      public static Set<String> getRoots()
    • getResources

      public static List<org.beangle.security.authz.Authority> getResources()
    • toAuthorities

      public static List<org.beangle.security.authz.Authority> toAuthorities(String resources)