Package org.apache.shiro.subject

Examples of org.apache.shiro.subject.SimplePrincipalCollection


    private static class PermsSubject extends SubjectAdapter {

        @Override
        public PrincipalCollection getPrincipals() {
            return new SimplePrincipalCollection("foo", "someRealm");
        }
View Full Code Here


        if (isSystemConnection(conn)) {
            username = systemAccountUsername;
            realmName = systemAccountRealmName;
        }

        return new SimplePrincipalCollection(username, realmName);
    }
View Full Code Here

 
  /**
   * 清空用户关联权限认证,待下次使用时重新加载
   */
  public void clearCachedAuthorizationInfo(String principal) {
    SimplePrincipalCollection principals = new SimplePrincipalCollection(principal, getName());
    clearCachedAuthorizationInfo(principals);
  }
View Full Code Here

TOP

Related Classes of org.apache.shiro.subject.SimplePrincipalCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.