Class SecurityRule
java.lang.Object
org.springframework.statemachine.security.SecurityRule
Encapsulates the rules for comparing security attributes and expression.
- Author:
- Janne Valkealahti
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Security comparison types. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<String>
commaDelimitedListToSecurityAttributes
(String attributes) Convert attributes from comma separated String to CollectionGets the security attributes.Gets the comparison type.Gets the security expression.static String
securityAttributesToCommaDelimitedList
(Collection<?> attributes) Convert attributes to comma separated Stringvoid
setAttributes
(Collection<String> attributes) Sets the security attributes.void
setComparisonType
(SecurityRule.ComparisonType comparisonType) Sets the comparison type.void
setExpression
(String expression) Sets the security expression.toString()
-
Constructor Details
-
SecurityRule
public SecurityRule()
-
-
Method Details
-
securityAttributesToCommaDelimitedList
Convert attributes to comma separated String- Parameters:
attributes
- the attributes to convert- Returns:
- comma separated String
-
commaDelimitedListToSecurityAttributes
Convert attributes from comma separated String to Collection- Parameters:
attributes
- the attributes to convert- Returns:
- comma parsed Collection
-
getAttributes
Gets the security attributes.- Returns:
- the security attributes
-
setAttributes
Sets the security attributes.- Parameters:
attributes
- the new security attributes
-
getComparisonType
Gets the comparison type.- Returns:
- the comparison type
-
setComparisonType
Sets the comparison type.- Parameters:
comparisonType
- the new comparison type
-
getExpression
Gets the security expression.- Returns:
- the security expression
-
setExpression
Sets the security expression.- Parameters:
expression
- the new security expression
-
toString
-