org.springframework.security.oauth.provider.attributes
Class ConsumerSecurityVoter
java.lang.Object
org.springframework.security.oauth.provider.attributes.ConsumerSecurityVoter
- All Implemented Interfaces:
- org.springframework.security.vote.AccessDecisionVoter
public class ConsumerSecurityVoter
- extends java.lang.Object
- implements org.springframework.security.vote.AccessDecisionVoter
- Author:
- Ryan Heaton
| Fields inherited from interface org.springframework.security.vote.AccessDecisionVoter |
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED |
|
Method Summary |
boolean |
supports(java.lang.Class clazz)
All classes are supported. |
boolean |
supports(org.springframework.security.ConfigAttribute attribute)
The config attribute is supported if it's an instance of ConsumerSecurityConfig. |
int |
vote(org.springframework.security.Authentication authentication,
java.lang.Object object,
org.springframework.security.ConfigAttributeDefinition definition)
Votes on giving access to the specified authentication based on the security attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumerSecurityVoter
public ConsumerSecurityVoter()
supports
public boolean supports(org.springframework.security.ConfigAttribute attribute)
- The config attribute is supported if it's an instance of
ConsumerSecurityConfig.
- Specified by:
supports in interface org.springframework.security.vote.AccessDecisionVoter
- Parameters:
attribute - The attribute.
- Returns:
- Whether the attribute is an instance of
ConsumerSecurityConfig.
supports
public boolean supports(java.lang.Class clazz)
- All classes are supported.
- Specified by:
supports in interface org.springframework.security.vote.AccessDecisionVoter
- Parameters:
clazz - The class.
- Returns:
- true.
vote
public int vote(org.springframework.security.Authentication authentication,
java.lang.Object object,
org.springframework.security.ConfigAttributeDefinition definition)
- Votes on giving access to the specified authentication based on the security attributes.
- Specified by:
vote in interface org.springframework.security.vote.AccessDecisionVoter
- Parameters:
authentication - The authentication.object - The object.definition - The definition.
- Returns:
- The vote.
Copyright © 2008. All Rights Reserved.