Class DefaultChannelAccessPolicy
java.lang.Object
org.springframework.integration.security.channel.DefaultChannelAccessPolicy
- All Implemented Interfaces:
ChannelAccessPolicy
@Deprecated(since="6.0")
public class DefaultChannelAccessPolicy
extends Object
implements ChannelAccessPolicy
Deprecated.
Creates the
ConfigAttribute
s for secured channel
send and receive operations based on simple String values.- Author:
- Mark Fisher, Oleg Zhurakousky, Artem Bilan
-
Constructor Summary
ConstructorDescriptionDefaultChannelAccessPolicy
(String[] sendAccess, String[] receiveAccess) Deprecated.Create an access policy instance.DefaultChannelAccessPolicy
(String sendAccess, String receiveAccess) Deprecated.Create an access policy instance. -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.security.access.ConfigAttribute>
Deprecated.Collection<org.springframework.security.access.ConfigAttribute>
Deprecated.
-
Constructor Details
-
DefaultChannelAccessPolicy
Deprecated.Create an access policy instance. The provided 'sendAccess' and 'receiveAccess' values may be a single String or a comma-delimited list of values. All whitespace will be trimmed. Anull
value indicates that the policy does not apply for either send or receive access type. At most one of the values may be null.- Parameters:
sendAccess
- The send access value(s).receiveAccess
- The receive access value(s).
-
DefaultChannelAccessPolicy
Deprecated.Create an access policy instance. Anull
value indicates that the policy does not apply for either send or receive access type. At most one of the values may be null. Typically is used for the values from theSecuredChannel
- Parameters:
sendAccess
- The send access values.receiveAccess
- The receive access values.- Since:
- 4.2
-
-
Method Details
-
getConfigAttributesForSend
Deprecated.- Specified by:
getConfigAttributesForSend
in interfaceChannelAccessPolicy
-
getConfigAttributesForReceive
public Collection<org.springframework.security.access.ConfigAttribute> getConfigAttributesForReceive()Deprecated.- Specified by:
getConfigAttributesForReceive
in interfaceChannelAccessPolicy
-
new AuthorizationChannelInterceptor(AuthorityAuthorizationManager.hasAnyRole())