Class SecurityConfig
- java.lang.Object
-
- org.springframework.security.access.SecurityConfig
-
- All Implemented Interfaces:
java.io.Serializable,ConfigAttribute
- Direct Known Subclasses:
Jsr250SecurityConfig
public class SecurityConfig extends java.lang.Object implements ConfigAttribute
Stores aConfigAttributeas aString.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecurityConfig(java.lang.String config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<ConfigAttribute>createList(java.lang.String... attributeNames)static java.util.List<ConfigAttribute>createListFromCommaDelimitedString(java.lang.String access)booleanequals(java.lang.Object obj)java.lang.StringgetAttribute()If theConfigAttributecan be represented as aStringand thatStringis sufficient in precision to be relied upon as a configuration parameter by aRunAsManager,AccessDecisionManagerorAccessDecisionManagerdelegate, this method should return such aString.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getAttribute
public java.lang.String getAttribute()
Description copied from interface:ConfigAttributeIf theConfigAttributecan be represented as aStringand thatStringis sufficient in precision to be relied upon as a configuration parameter by aRunAsManager,AccessDecisionManagerorAccessDecisionManagerdelegate, this method should return such aString.If the
ConfigAttributecannot be expressed with sufficient precision as aString,nullshould be returned. Returningnullwill require any relying classes to specifically support theConfigAttributeimplementation, so returningnullshould be avoided unless actually required.- Specified by:
getAttributein interfaceConfigAttribute- Returns:
- a representation of the configuration attribute (or
nullif the configuration attribute cannot be expressed as aStringwith sufficient precision).
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
createListFromCommaDelimitedString
public static java.util.List<ConfigAttribute> createListFromCommaDelimitedString(java.lang.String access)
-
createList
public static java.util.List<ConfigAttribute> createList(java.lang.String... attributeNames)
-
-