public class SecurityRule
extends java.lang.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 java.lang.String |
SECURITY_ATTRIBUTE_NAME
Attribute name for the location of the security rule
|
Constructor and Description |
---|
SecurityRule() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection |
commaDelimitedListToSecurityAttributes(java.lang.String attributes)
Convert attributes from comma separated String to Collection
|
java.util.Collection |
getAttributes()
Gets security attributes
|
short |
getComparisonType()
Gets comparison type
|
static java.lang.String |
securityAttributesToCommaDelimitedList(java.util.Collection attributes)
Convert attributes to comma separated String
|
void |
setAttributes(java.util.Collection attributes)
Sets security attributes
|
void |
setComparisonType(short comparisonType)
Sets comparison type
|
public static final java.lang.String SECURITY_ATTRIBUTE_NAME
public static final short COMPARISON_ANY
public static final short COMPARISON_ALL
public static java.lang.String securityAttributesToCommaDelimitedList(java.util.Collection attributes)
attributes
- the attributes to convertpublic static java.util.Collection commaDelimitedListToSecurityAttributes(java.lang.String attributes)
attributes
- the attributes to convertpublic java.util.Collection getAttributes()
public void setAttributes(java.util.Collection attributes)
attributes
- security attributespublic short getComparisonType()
public void setComparisonType(short comparisonType)
comparisonType
- comparison type