Class SecurityRule

java.lang.Object
org.springframework.webflow.security.SecurityRule

public class SecurityRule extends Object
Encapsulates the rules for comparing security attributes
Author:
Scott Andrews
  • Field Details

    • SECURITY_ATTRIBUTE_NAME

      public static final String SECURITY_ATTRIBUTE_NAME
      Attribute name for the location of the security rule
      See Also:
    • COMPARISON_ANY

      public static final short COMPARISON_ANY
      Compare method where any attribute authorization allows access
      See Also:
    • COMPARISON_ALL

      public static final short COMPARISON_ALL
      Compare method where all attribute authorization allows access
      See Also:
  • Constructor Details

    • SecurityRule

      public SecurityRule()
  • Method Details

    • securityAttributesToCommaDelimitedList

      public static String securityAttributesToCommaDelimitedList(Collection<?> attributes)
      Convert attributes to comma separated String
      Parameters:
      attributes - the attributes to convert
      Returns:
      comma separated String
    • commaDelimitedListToSecurityAttributes

      public static Collection<String> commaDelimitedListToSecurityAttributes(String attributes)
      Convert attributes from comma separated String to Collection
      Parameters:
      attributes - the attributes to convert
      Returns:
      comma parsed Collection
    • getAttributes

      public Collection<String> getAttributes()
      Gets security attributes
      Returns:
      security attributes
    • setAttributes

      public void setAttributes(Collection<String> attributes)
      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 an AuthorizationManager for this security config based on AuthorityAuthorizationManager.