public class EventExpressionVoter<T>
extends java.lang.Object
implements org.springframework.security.access.AccessDecisionVoter<org.springframework.messaging.Message<T>>
Message
authorisation decisions. If a
EventExpressionConfigAttribute
is found, then its expression is evaluated. If
true, ACCESS_GRANTED
is returned. If false, ACCESS_DENIED
is returned.
If no MessageExpressionConfigAttribute
is found, then ACCESS_ABSTAIN
is
returned.Constructor and Description |
---|
EventExpressionVoter() |
Modifier and Type | Method and Description |
---|---|
void |
setExpressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<T>> expressionHandler) |
boolean |
supports(java.lang.Class<?> clazz) |
boolean |
supports(org.springframework.security.access.ConfigAttribute attribute) |
int |
vote(org.springframework.security.core.Authentication authentication,
org.springframework.messaging.Message<T> message,
java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes) |
public int vote(org.springframework.security.core.Authentication authentication, org.springframework.messaging.Message<T> message, java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes)
vote
in interface org.springframework.security.access.AccessDecisionVoter<org.springframework.messaging.Message<T>>
public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
supports
in interface org.springframework.security.access.AccessDecisionVoter<org.springframework.messaging.Message<T>>
public boolean supports(java.lang.Class<?> clazz)
supports
in interface org.springframework.security.access.AccessDecisionVoter<org.springframework.messaging.Message<T>>
public void setExpressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<T>> expressionHandler)