public class AccessPredicateVoter extends Object implements AccessDecisionVoter<ServerCall<?,?>>
AccessDecisionVoter
that checks for AccessPredicateConfigAttribute
s.ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
Constructor and Description |
---|
AccessPredicateVoter() |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(Class<?> clazz) |
boolean |
supports(ConfigAttribute attribute) |
int |
vote(Authentication authentication,
ServerCall<?,?> serverCall,
Collection<ConfigAttribute> attributes) |
public boolean supports(ConfigAttribute attribute)
supports
in interface AccessDecisionVoter<ServerCall<?,?>>
public boolean supports(Class<?> clazz)
supports
in interface AccessDecisionVoter<ServerCall<?,?>>
public int vote(Authentication authentication, ServerCall<?,?> serverCall, Collection<ConfigAttribute> attributes)
vote
in interface AccessDecisionVoter<ServerCall<?,?>>