public class SecurityRule extends Object
Modifier and Type | Field and Description |
---|---|
static short |
COMPARISON_ALL
Compare method where all attribute authorization allows access
|
static short |
COMPARISON_ANY
Compare method where any attribute authorization allows access
|
static String |
SECURITY_ATTRIBUTE_NAME
Attribute name for the location of the security rule
|
Constructor and Description |
---|
SecurityRule() |
Modifier and Type | Method and Description |
---|---|
static Collection |
commaDelimitedListToSecurityAttributes(String attributes)
Convert attributes from comma separated String to Collection
|
Collection |
getAttributes()
Gets security attributes
|
short |
getComparisonType()
Gets comparison type
|
static String |
securityAttributesToCommaDelimitedList(Collection attributes)
Convert attributes to comma separated String
|
void |
setAttributes(Collection attributes)
Sets security attributes
|
void |
setComparisonType(short comparisonType)
Sets comparison type
|
public static final String SECURITY_ATTRIBUTE_NAME
public static final short COMPARISON_ANY
public static final short COMPARISON_ALL
public static String securityAttributesToCommaDelimitedList(Collection attributes)
attributes
- the attributes to convertpublic static Collection commaDelimitedListToSecurityAttributes(String attributes)
attributes
- the attributes to convertpublic Collection getAttributes()
public void setAttributes(Collection attributes)
attributes
- security attributespublic short getComparisonType()
public void setComparisonType(short comparisonType)
comparisonType
- comparison type