Class SecurityRule
java.lang.Object
org.springframework.webflow.security.SecurityRule
Encapsulates the rules for comparing security attributes
- Author:
- Scott Andrews
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortCompare method where all attribute authorization allows accessstatic final shortCompare method where any attribute authorization allows accessstatic final StringAttribute name for the location of the security rule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<String>commaDelimitedListToSecurityAttributes(String attributes) Convert attributes from comma separated String to CollectionGets security attributesorg.springframework.security.authorization.AuthorizationManager<Object>Return anAuthorizationManagerfor this security config based onAuthorityAuthorizationManager.shortGets comparison typestatic StringsecurityAttributesToCommaDelimitedList(Collection<?> attributes) Convert attributes to comma separated StringvoidsetAttributes(Collection<String> attributes) Sets security attributesvoidsetComparisonType(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
-
getAuthorizationManager
public org.springframework.security.authorization.AuthorizationManager<Object> getAuthorizationManager()Return anAuthorizationManagerfor this security config based onAuthorityAuthorizationManager.
-