|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openid4java.message.ax.AxMessage
org.openid4java.message.ax.AxPayload
public abstract class AxPayload
| Field Summary |
|---|
| Fields inherited from class org.openid4java.message.ax.AxMessage |
|---|
_parameters, OPENID_NS_AX |
| Constructor Summary | |
|---|---|
AxPayload()
|
|
| Method Summary | |
|---|---|
String |
addAttribute(String typeUri,
String value)
Adds an attribute to the attribute payload, without the caller having to specify an alias. |
void |
addAttribute(String alias,
String typeUri,
String value)
Adds an attribute to the attribute payload. |
void |
addAttributes(Map attributes)
Adds the attributes in the supplied Map to the attribute payload. |
String |
getAttributeAlias(String typeUri)
Gets the alias for an attribute type URI, if present. |
List |
getAttributeAliases()
Gets a list of attribute aliases. |
Map |
getAttributes()
Gets a map with attribute aliases -> list of values. |
Map |
getAttributeTypes()
Gets a map with attribute aliases -> attribute type URI. |
String |
getAttributeTypeUri(String alias)
Get typeURI value for the specified attribute alias. |
String |
getAttributeValue(String alias)
Gets the (first) value for the specified attribute alias. |
String |
getAttributeValueByTypeUri(String typeUri)
Gets the (first) value for the specified attribute type URI. |
List |
getAttributeValues(String alias)
Returns a list with the attribute value(s) associated for the specified attribute alias. |
List |
getAttributeValuesByTypeUri(String typeUri)
Returns a list with the attribute value(s) associated for the specified attribute type URI. |
int |
getCount(String alias)
Gets the number of values provided in the attribute payload for the specified attribute alias. |
protected boolean |
isValid()
|
| Methods inherited from class org.openid4java.message.ax.AxMessage |
|---|
getExtension, getParameters, getParameterValue, getTypeUri, providesIdentifier, setParameters, signRequired |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AxPayload()
| Method Detail |
|---|
public void addAttribute(String alias,
String typeUri,
String value)
throws MessageException
alias - The alias identifier that will be associated
with the attribute type URI.typeUri - The attribute type URI.value - The value of the attribute.
MessageException
public String addAttribute(String typeUri,
String value)
typeUri - The attribute type URI.value - The attribute value.
public void addAttributes(Map attributes)
attributes - Mappublic List getAttributeValues(String alias)
alias - The attribute alias.
public String getAttributeTypeUri(String alias)
public String getAttributeAlias(String typeUri)
typeUri - the attribyte type URI for which the alias is looked up
public String getAttributeValueByTypeUri(String typeUri)
typeUri -
public List getAttributeValuesByTypeUri(String typeUri)
typeUri - The attribute type URI.
public String getAttributeValue(String alias)
public List getAttributeAliases()
public Map getAttributes()
public Map getAttributeTypes()
public int getCount(String alias)
alias - The attribute alias.protected boolean isValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||