Examples of UnanimousBased


Examples of org.springframework.security.access.vote.UnanimousBased

    public AccessDecisionManager shellAccessDecisionManager() {
      List<AccessDecisionVoter> voters = new ArrayList<AccessDecisionVoter>();
      RoleVoter voter = new RoleVoter();
      voter.setRolePrefix("");
      voters.add(voter);
      AccessDecisionManager result = new UnanimousBased(voters);
      return result;
    }
View Full Code Here

Examples of org.springframework.security.vote.UnanimousBased

      List voters = new ArrayList();
      voters.add(new RoleVoter());
      if (rule.getComparisonType() == SecurityRule.COMPARISON_ANY) {
        abstractAccessDecisionManager = new AffirmativeBased();
      } else if (rule.getComparisonType() == SecurityRule.COMPARISON_ALL) {
        abstractAccessDecisionManager = new UnanimousBased();
      } else {
        throw new IllegalStateException("Unknown SecurityRule match type: " + rule.getComparisonType());
      }
      abstractAccessDecisionManager.setDecisionVoters(voters);
      abstractAccessDecisionManager.decide(authentication, object, config);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.