public class Jsr250Voter extends java.lang.Object implements AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED| Constructor and Description |
|---|
Jsr250Voter() |
| Modifier and Type | Method and Description |
|---|---|
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,
ConfigAttributeDefinition definition)
Votes according to JSR 250.
|
public boolean supports(ConfigAttribute configAttribute)
Jsr250SecurityConfig.supports in interface AccessDecisionVoterconfigAttribute - The config attribute.public boolean supports(java.lang.Class clazz)
supports in interface AccessDecisionVoterclazz - the class.public int vote(Authentication authentication, java.lang.Object object, ConfigAttributeDefinition definition)
vote in interface AccessDecisionVoterauthentication - The authentication object.object - The access object.definition - The configuration definition.