|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.openid.client.consumer.OpenIDPrincipal
public class OpenIDPrincipal
OpenIDPrincipal represents an authenticated OpenID user. The OpenIDPrincipal must have an OpenID identifier, and may have attributes (retrieved via Attribute Exchange).
Constructor Summary | |
---|---|
OpenIDPrincipal(OpenIDAuthResponse resp)
Construct an OpenIDPrincipal from an OpenIDAuthResponse message. |
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String key)
Returns the value of an attribute. |
java.util.Map |
getAttributesMap()
Map of attributes (may be null if no attributes present). |
java.lang.String |
getIdentifier()
|
void |
setAttributesMap(java.util.Map attributesMap)
Map of attributes (may be null if no attributes present). |
void |
setIdentifier(java.lang.String identifier)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenIDPrincipal(OpenIDAuthResponse resp) throws OpenIDAuthResponseException
resp
- OpenIDAuthResponse message.
OpenIDAuthResponseException
- if the OpenIDAuthResponse is an error message.Method Detail |
---|
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
identifier
- URI/XRI OpenID.public java.util.Map getAttributesMap()
public void setAttributesMap(java.util.Map attributesMap)
attributesMap
- Map< String attribname, Listpublic java.lang.String getAttribute(java.lang.String key)
key
- attribute name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |