|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.security.api.AttributeList
Class AttributeList is used to define specific attributes which can be used to populate an IPrincipal object. If you know in advance which attributes you want to access use this class to define the used attributes. You will have better performance and less communication with the server if you specify the desired attributes. Note: Reuse of a AttributeList object which was already used to get a principal from a factory is not supported. The factory might change the content of the passed AttributeList object.
| Field Summary | |
static int |
TYPE_BLOB
TYPE_BLOB is returned by getAttributeType(String, String) if the type of the values of an
attribute is of type byte[] |
static int |
TYPE_STRING
TYPE_STRING is returned by getAttributeType(String, String) if the type of the values of an
attribute is of type String |
static int |
TYPE_UNKNOWN
TYPE_UNKNOWN is returned by getAttributeType(String, String) if the type of the values of an
attribute cannot be determined |
static java.lang.String |
VERSIONSTRING
|
| Constructor Summary | |
AttributeList()
Default constructor of AttributeList. |
|
AttributeList(boolean checkSizeLimit)
Constructor of AttributeList. |
|
| Method Summary | |
void |
addAttribute(java.lang.String nameSpace,
java.lang.String attributeName)
Add an attribute to this instance of AttributeList with following properties Note: A AttributeList can only contain 25 attributes. |
void |
addAttribute(java.lang.String nameSpace,
java.lang.String attributeName,
int type)
Add an attribute to this instance of AttributeList with following properties |
void |
addAttributeList(AttributeList populateAttributes)
Add attributes to this instance of AttributeList |
java.lang.Object |
clone()
Returns a new instance of AttributeList which contains the same data as this instance. |
boolean |
containsAttribute(java.lang.String nameSpace,
java.lang.String attributeName)
|
boolean |
containsAttribute(java.lang.String nameSpace,
java.lang.String attributeName,
int type)
Returns whether an attribute is contained in this instance of AttributeList with following properties |
boolean |
equals(java.lang.Object obj)
used to compare instances of AttributeList |
java.lang.String |
getAttributeNameOfAttributeAt(int index)
Returns the name of an attribute at a given index in this attributeList |
int |
getAttributeType(java.lang.String nameSpace,
java.lang.String attributeName)
returns the type of the attribute of this instance of AttributeList. |
int |
getAttributeTypeOfAttributeAt(int index)
returns the type of the attribute of this instance of AttributeList. |
java.lang.String |
getNameSpaceOfAttributeAt(int index)
Returns the namespace of an attribute at a given index in this attributeList |
AttributeList |
getNotContainedAttributes(AttributeList populateAttributes)
Returns a new instance of AttributeList which contains all attributes which are contained in the passed AttributeList, but not contained in this instance. |
int |
getSize()
Returns the number of components in this attributeList |
boolean |
isSubsetOf(AttributeList populateAttributes)
Returns a whether this AttributeList is a subset of the given AttributeList |
void |
removeAttribute(java.lang.String nameSpace,
java.lang.String attributeName)
Removes an attribute from this instance of AttributeList with following properties |
java.lang.String |
toString()
Returns a string representation of this AttributeList. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSIONSTRING
public static final int TYPE_UNKNOWN
getAttributeType(String, String) if the type of the values of an
attribute cannot be determinedpublic static final int TYPE_STRING
getAttributeType(String, String) if the type of the values of an
attribute is of type Stringpublic static final int TYPE_BLOB
getAttributeType(String, String) if the type of the values of an
attribute is of type byte[]| Constructor Detail |
public AttributeList()
addAttribute(String, String)
to add attributespublic AttributeList(boolean checkSizeLimit)
addAttribute(String, String)to add attributescheckSizeLimit - specifies whether the size limit of 25 attributes should be checked| Method Detail |
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj: - object which should be compared with this instancepublic int getAttributeTypeOfAttributeAt(int index)
index: - index of attribute in AttributeList
public int getAttributeType(java.lang.String nameSpace,
java.lang.String attributeName)
nameSpace: - namespace of the attributeattributeName: - name of the attribute
public void removeAttribute(java.lang.String nameSpace,
java.lang.String attributeName)
nameSpace: - namespace of the attributeattributeName: - name of the attribute
public boolean containsAttribute(java.lang.String nameSpace,
java.lang.String attributeName,
int type)
nameSpace: - namespace of the attributeattributeName: - name of the attributetype: - the attribute type
public boolean containsAttribute(java.lang.String nameSpace,
java.lang.String attributeName)
public void addAttribute(java.lang.String nameSpace,
java.lang.String attributeName)
nameSpace: - namespace of the attributeattributeName: - name of the attributeUMRuntimeException - if the AttributeList already contains 25 attributes.
public void addAttribute(java.lang.String nameSpace,
java.lang.String attributeName,
int type)
nameSpace: - namespace of the attributeattributeName: - name of the attributetype - of the attribute. Following constants are allowed:
TYPE_UNKNOWN, TYPE_STRING, TYPE_BLOBUMRuntimeException - if the AttributeList already contains 25 attributes.public void addAttributeList(AttributeList populateAttributes)
populateAttributes: - instance of another AttributeList which is used to copy
the attributes into this instanceUMRuntimeException - if the AttributeList already contains 25 attributes.public boolean isSubsetOf(AttributeList populateAttributes)
public AttributeList getNotContainedAttributes(AttributeList populateAttributes)
public java.lang.Object clone()
public int getSize()
public java.lang.String getNameSpaceOfAttributeAt(int index)
public java.lang.String getAttributeNameOfAttributeAt(int index)
given - index in attributeListpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||