Class MessageExpressionVoter<T>
java.lang.Object
org.springframework.security.messaging.access.expression.MessageExpressionVoter<T>
- All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter<org.springframework.messaging.Message<T>>
@Deprecated
public class MessageExpressionVoter<T>
extends Object
implements org.springframework.security.access.AccessDecisionVoter<org.springframework.messaging.Message<T>>
Deprecated.
Voter which handles
Message authorisation decisions. If a
MessageExpressionConfigAttribute 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.- Since:
- 4.0
-
Field Summary
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetExpressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<T>> expressionHandler) Deprecated.booleanDeprecated.booleansupports(org.springframework.security.access.ConfigAttribute attribute) Deprecated.intvote(org.springframework.security.core.Authentication authentication, org.springframework.messaging.Message<T> message, Collection<org.springframework.security.access.ConfigAttribute> attributes) Deprecated.
-
Constructor Details
-
MessageExpressionVoter
public MessageExpressionVoter()Deprecated.
-
-
Method Details
-
vote
public int vote(org.springframework.security.core.Authentication authentication, org.springframework.messaging.Message<T> message, Collection<org.springframework.security.access.ConfigAttribute> attributes) Deprecated.- Specified by:
votein interfaceorg.springframework.security.access.AccessDecisionVoter<T>
-
supports
public boolean supports(org.springframework.security.access.ConfigAttribute attribute) Deprecated.- Specified by:
supportsin interfaceorg.springframework.security.access.AccessDecisionVoter<T>
-
supports
Deprecated.- Specified by:
supportsin interfaceorg.springframework.security.access.AccessDecisionVoter<T>
-
setExpressionHandler
public void setExpressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<T>> expressionHandler) Deprecated.
-
MessageMatcherDelegatingAuthorizationManagerinstead