Interface SecurityConfigurer<S,E>

Type Parameters:
S - the type of state
E - 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 Details

    • enabled

      SecurityConfigurer<S,E> enabled(boolean 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 custom AccessDecisionManager 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 custom AccessDecisionManager for events.
      Parameters:
      accessDecisionManager - the access decision manager
      Returns:
      configurer for chaining
    • event

      Specify a security attributes for events.
      Parameters:
      attributes - the security attributes
      match - the match type
      Returns:
      configurer for chaining
    • event

      SecurityConfigurer<S,E> event(String expression)
      Specify a security attributes for events.
      Parameters:
      expression - the the security expression
      Returns:
      configurer for chaining
    • transition

      SecurityConfigurer<S,E> transition(String attributes, SecurityRule.ComparisonType match)
      Specify a security attributes for transitions.
      Parameters:
      attributes - the security attributes
      match - the match type
      Returns:
      configurer for chaining
    • transition

      SecurityConfigurer<S,E> transition(String expression)
      Specify a security attributes for transitions.
      Parameters:
      expression - the the security expression
      Returns:
      configurer for chaining