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