Interface SecurityConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Superinterfaces:
AnnotationConfigurerBuilder<StateMachineConfigurationConfigurer<S,
E>>
- All Known Implementing Classes:
DefaultSecurityConfigurer
public interface SecurityConfigurer<S,E>
extends AnnotationConfigurerBuilder<StateMachineConfigurationConfigurer<S,E>>
Base
ConfigConfigurer
interface for configuring generic config.- Author:
- Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionenabled
(boolean enabled) Specify if security is enabled.Specify a security attributes for events.event
(String attributes, SecurityRule.ComparisonType match) Specify a security attributes for events.eventAccessDecisionManager
(org.springframework.security.access.AccessDecisionManager accessDecisionManager) Specify a customAccessDecisionManager
for events.transition
(String expression) Specify a security attributes for transitions.transition
(String attributes, SecurityRule.ComparisonType match) Specify a security attributes for transitions.transitionAccessDecisionManager
(org.springframework.security.access.AccessDecisionManager accessDecisionManager) Specify a customAccessDecisionManager
for transitions.Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Method Details
-
enabled
Specify if security is enabled. On default security is enabled if configurer is used.- Parameters:
enabled
- the enable flag- Returns:
- configurer for chaining
-
transitionAccessDecisionManager
SecurityConfigurer<S,E> transitionAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager) Specify a customAccessDecisionManager
for transitions.- Parameters:
accessDecisionManager
- the access decision manager- Returns:
- configurer for chaining
-
eventAccessDecisionManager
SecurityConfigurer<S,E> eventAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager) Specify a customAccessDecisionManager
for events.- Parameters:
accessDecisionManager
- the access decision manager- Returns:
- configurer for chaining
-
event
Specify a security attributes for events.- Parameters:
attributes
- the security attributesmatch
- the match type- Returns:
- configurer for chaining
-
event
Specify a security attributes for events.- Parameters:
expression
- the the security expression- Returns:
- configurer for chaining
-
transition
Specify a security attributes for transitions.- Parameters:
attributes
- the security attributesmatch
- the match type- Returns:
- configurer for chaining
-
transition
Specify a security attributes for transitions.- Parameters:
expression
- the the security expression- Returns:
- configurer for chaining
-