|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.access.annotation.Jsr250Voter
public class Jsr250Voter
Voter on JSR-250 configuration attributes.
Field Summary |
---|
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter |
---|
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED |
Constructor Summary | |
---|---|
Jsr250Voter()
|
Method Summary | |
---|---|
boolean |
supports(java.lang.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,
java.lang.Object object,
java.util.Collection<ConfigAttribute> 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 |
---|
public Jsr250Voter()
Method Detail |
---|
public boolean supports(ConfigAttribute configAttribute)
Jsr250SecurityConfig
.
supports
in interface AccessDecisionVoter
configAttribute
- The config attribute.
public boolean supports(java.lang.Class<?> clazz)
supports
in interface AccessDecisionVoter
clazz
- the class.
public int vote(Authentication authentication, java.lang.Object object, java.util.Collection<ConfigAttribute> definition)
If no JSR-250 attributes are found, it will abstain, otherwise it will grant or deny access based on the attributes that are found.
vote
in interface AccessDecisionVoter
authentication
- The authentication object.object
- The access object.definition
- The configuration definition.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |