Class SecurityRule
java.lang.Object
org.springframework.webflow.security.SecurityRule
Encapsulates the rules for comparing security attributes
- Author:
- Scott Andrews
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
Compare method where all attribute authorization allows accessstatic final short
Compare method where any attribute authorization allows accessstatic final String
Attribute name for the location of the security rule -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<String>
commaDelimitedListToSecurityAttributes
(String attributes) Convert attributes from comma separated String to CollectionGets security attributesshort
Gets comparison typestatic String
securityAttributesToCommaDelimitedList
(Collection<?> attributes) Convert attributes to comma separated Stringvoid
setAttributes
(Collection<String> attributes) Sets security attributesvoid
setComparisonType
(short comparisonType) Sets comparison type
-
Field Details
-
SECURITY_ATTRIBUTE_NAME
Attribute name for the location of the security rule- See Also:
-
COMPARISON_ANY
public static final short COMPARISON_ANYCompare method where any attribute authorization allows access- See Also:
-
COMPARISON_ALL
public static final short COMPARISON_ALLCompare method where all attribute authorization allows access- See Also:
-
-
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 security attributes- Returns:
- security attributes
-
setAttributes
Sets security attributes- Parameters:
attributes
- security attributes
-
getComparisonType
public short getComparisonType()Gets comparison type- Returns:
- comparison type
-
setComparisonType
public void setComparisonType(short comparisonType) Sets comparison type- Parameters:
comparisonType
- comparison type
-