Class AccessPredicateVoter
java.lang.Object
net.devh.boot.grpc.server.security.check.AccessPredicateVoter
- All Implemented Interfaces:
AccessDecisionVoter<ServerCall<?,?>>
An
AccessDecisionVoter that checks for AccessPredicateConfigAttributes.-
Field Summary
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleansupports(ConfigAttribute attribute) intvote(Authentication authentication, ServerCall<?, ?> serverCall, Collection<ConfigAttribute> attributes)
-
Constructor Details
-
AccessPredicateVoter
public AccessPredicateVoter()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceAccessDecisionVoter<ServerCall<?,?>>
-
supports
- Specified by:
supportsin interfaceAccessDecisionVoter<ServerCall<?,?>>
-
vote
public int vote(Authentication authentication, ServerCall<?, ?> serverCall, Collection<ConfigAttribute> attributes) - Specified by:
votein interfaceAccessDecisionVoter<ServerCall<?,?>>
-