Spring Security Framework

org.springframework.security.annotation
Class Jsr250Voter

java.lang.Object
  extended by org.springframework.security.annotation.Jsr250Voter
All Implemented Interfaces:
AccessDecisionVoter

public class Jsr250Voter
extends Object
implements AccessDecisionVoter

Voter on JSR-250 configuration attributes.

Since:
2.0
Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface org.springframework.security.vote.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
 
Constructor Summary
Jsr250Voter()
           
 
Method Summary
 boolean supports(Class clazz)
          All classes are supported.
 boolean supports(ConfigAttribute configAttribute)
          The specified config attribute is supported if its an instance of a Jsr250SecurityConfig.
 int vote(Authentication authentication, Object object, ConfigAttributeDefinition definition)
          Votes according to JSR 250.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jsr250Voter

public Jsr250Voter()
Method Detail

supports

public boolean supports(ConfigAttribute configAttribute)
The specified config attribute is supported if its an instance of a Jsr250SecurityConfig.

Specified by:
supports in interface AccessDecisionVoter
Parameters:
configAttribute - The config attribute.
Returns:
whether the config attribute is supported.

supports

public boolean supports(Class clazz)
All classes are supported.

Specified by:
supports in interface AccessDecisionVoter
Parameters:
clazz - the class.
Returns:
true

vote

public int vote(Authentication authentication,
                Object object,
                ConfigAttributeDefinition definition)
Votes according to JSR 250.

Specified by:
vote in interface AccessDecisionVoter
Parameters:
authentication - The authentication object.
object - The access object.
definition - The configuration definition.
Returns:
The vote.

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.