|
||||||||||
| 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 | |
|---|---|
java.lang.String |
addAttribute(java.lang.String typeUri,
java.lang.String value)
Adds an attribute to the attribute payload, without the caller having to specify an alias. |
void |
addAttribute(java.lang.String alias,
java.lang.String typeUri,
java.lang.String value)
Adds an attribute to the attribute payload. |
void |
addAttributes(java.util.Map attributes)
Adds the attributes in the supplied Map to the attribute payload. |
java.lang.String |
getAttributeAlias(java.lang.String typeUri)
Gets the alias for an attribute type URI, if present. |
java.util.List |
getAttributeAliases()
Gets a list of attribute aliases. |
java.util.Map |
getAttributes()
Gets a map with attribute aliases -> list of values. |
java.util.Map |
getAttributeTypes()
Gets a map with attribute aliases -> attribute type URI. |
java.lang.String |
getAttributeTypeUri(java.lang.String alias)
Get typeURI value for the specified attribute alias. |
java.lang.String |
getAttributeValue(java.lang.String alias)
Gets the (first) value for the specified attribute alias. |
java.lang.String |
getAttributeValueByTypeUri(java.lang.String typeUri)
Gets the (first) value for the specified attribute type URI. |
java.util.List |
getAttributeValues(java.lang.String alias)
Returns a list with the attribute value(s) associated for the specified attribute alias. |
java.util.List |
getAttributeValuesByTypeUri(java.lang.String typeUri)
Returns a list with the attribute value(s) associated for the specified attribute type URI. |
int |
getCount(java.lang.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(java.lang.String alias,
java.lang.String typeUri,
java.lang.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 java.lang.String addAttribute(java.lang.String typeUri,
java.lang.String value)
typeUri - The attribute type URI.value - The attribute value.
public void addAttributes(java.util.Map attributes)
attributes - Mappublic java.util.List getAttributeValues(java.lang.String alias)
alias - The attribute alias.
public java.lang.String getAttributeTypeUri(java.lang.String alias)
public java.lang.String getAttributeAlias(java.lang.String typeUri)
typeUri - the attribyte type URI for which the alias is looked up
public java.lang.String getAttributeValueByTypeUri(java.lang.String typeUri)
typeUri -
public java.util.List getAttributeValuesByTypeUri(java.lang.String typeUri)
typeUri - The attribute type URI.
public java.lang.String getAttributeValue(java.lang.String alias)
public java.util.List getAttributeAliases()
public java.util.Map getAttributes()
public java.util.Map getAttributeTypes()
public int getCount(java.lang.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 | |||||||||