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