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 aConfigAttribute
as 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)
boolean
equals(java.lang.Object obj)
java.lang.String
getAttribute()
If theConfigAttribute
can be represented as aString
and thatString
is sufficient in precision to be relied upon as a configuration parameter by aRunAsManager
,AccessDecisionManager
orAccessDecisionManager
delegate, this method should return such aString
.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getAttribute
public java.lang.String getAttribute()
Description copied from interface:ConfigAttribute
If theConfigAttribute
can be represented as aString
and thatString
is sufficient in precision to be relied upon as a configuration parameter by aRunAsManager
,AccessDecisionManager
orAccessDecisionManager
delegate, this method should return such aString
.If the
ConfigAttribute
cannot be expressed with sufficient precision as aString
,null
should be returned. Returningnull
will require any relying classes to specifically support theConfigAttribute
implementation, so returningnull
should be avoided unless actually required.- Specified by:
getAttribute
in interfaceConfigAttribute
- Returns:
- a representation of the configuration attribute (or
null
if the configuration attribute cannot be expressed as aString
with sufficient precision).
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-