org.acegisecurity.vote
Class DenyVoter
java.lang.Object
org.acegisecurity.vote.DenyVoter
- All Implemented Interfaces:
- org.acegisecurity.vote.AccessDecisionVoter
public class DenyVoter
- extends Object
- implements org.acegisecurity.vote.AccessDecisionVoter
Implementation of an AccessDecisionVoter for unit testing.
If the ConfigAttribute.getAttribute() has a value of DENY_FOR_SURE, the voter will vote to deny access.
All comparisons are case sensitive.
- Version:
- $Id: DenyVoter.java 1496 2006-05-23 13:38:33Z benalex $
- Author:
- Ben Alex
| Fields inherited from interface org.acegisecurity.vote.AccessDecisionVoter |
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED |
|
Method Summary |
boolean |
supports(Class clazz)
|
boolean |
supports(org.acegisecurity.ConfigAttribute attribute)
|
int |
vote(org.acegisecurity.Authentication authentication,
Object object,
org.acegisecurity.ConfigAttributeDefinition config)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DenyVoter
public DenyVoter()
supports
public boolean supports(org.acegisecurity.ConfigAttribute attribute)
- Specified by:
supports in interface org.acegisecurity.vote.AccessDecisionVoter
supports
public boolean supports(Class clazz)
- Specified by:
supports in interface org.acegisecurity.vote.AccessDecisionVoter
vote
public int vote(org.acegisecurity.Authentication authentication,
Object object,
org.acegisecurity.ConfigAttributeDefinition config)
- Specified by:
vote in interface org.acegisecurity.vote.AccessDecisionVoter
Copyright © 2004-2008 Interface21, Inc. All Rights Reserved.