Class DefaultSecurityConfigurer<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter<ConfigurationData<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>>
org.springframework.statemachine.config.configurers.DefaultSecurityConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
AnnotationConfigurer<ConfigurationData<S,
,E>, StateMachineConfigurationBuilder<S, E>> AnnotationConfigurerBuilder<StateMachineConfigurationConfigurer<S,
,E>> SecurityConfigurer<S,
E>
public class DefaultSecurityConfigurer<S,E>
extends AnnotationConfigurerAdapter<ConfigurationData<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>>
implements SecurityConfigurer<S,E>
Default implementation of a
SecurityConfigurer
.- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(StateMachineConfigurationBuilder<S, E> builder) Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.enabled
(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 class org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Constructor Details
-
DefaultSecurityConfigurer
public DefaultSecurityConfigurer()
-
-
Method Details
-
configure
Description copied from interface:AnnotationConfigurer
Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.- Specified by:
configure
in interfaceAnnotationConfigurer<S,
E> - Overrides:
configure
in classAnnotationConfigurerAdapter<ConfigurationData<S,
E>, StateMachineConfigurationConfigurer<S, E>, StateMachineConfigurationBuilder<S, E>> - Parameters:
builder
- the builder- Throws:
Exception
- if error occurred
-
enabled
Description copied from interface:SecurityConfigurer
Specify if security is enabled. On default security is enabled if configurer is used.- Specified by:
enabled
in interfaceSecurityConfigurer<S,
E> - Parameters:
enabled
- the enable flag- Returns:
- configurer for chaining
-
transitionAccessDecisionManager
public SecurityConfigurer<S,E> transitionAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager) Description copied from interface:SecurityConfigurer
Specify a customAccessDecisionManager
for transitions.- Specified by:
transitionAccessDecisionManager
in interfaceSecurityConfigurer<S,
E> - Parameters:
accessDecisionManager
- the access decision manager- Returns:
- configurer for chaining
-
eventAccessDecisionManager
public SecurityConfigurer<S,E> eventAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager) Description copied from interface:SecurityConfigurer
Specify a customAccessDecisionManager
for events.- Specified by:
eventAccessDecisionManager
in interfaceSecurityConfigurer<S,
E> - Parameters:
accessDecisionManager
- the access decision manager- Returns:
- configurer for chaining
-
event
Description copied from interface:SecurityConfigurer
Specify a security attributes for events.- Specified by:
event
in interfaceSecurityConfigurer<S,
E> - Parameters:
attributes
- the security attributesmatch
- the match type- Returns:
- configurer for chaining
-
event
Description copied from interface:SecurityConfigurer
Specify a security attributes for events.- Specified by:
event
in interfaceSecurityConfigurer<S,
E> - Parameters:
expression
- the the security expression- Returns:
- configurer for chaining
-
transition
Description copied from interface:SecurityConfigurer
Specify a security attributes for transitions.- Specified by:
transition
in interfaceSecurityConfigurer<S,
E> - Parameters:
attributes
- the security attributesmatch
- the match type- Returns:
- configurer for chaining
-
transition
Description copied from interface:SecurityConfigurer
Specify a security attributes for transitions.- Specified by:
transition
in interfaceSecurityConfigurer<S,
E> - Parameters:
expression
- the the security expression- Returns:
- configurer for chaining
-