|
||||||||||
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 | |
---|---|
String |
getAttribute(String key)
Returns the value of an attribute. |
Map |
getAttributesMap()
Map of attributes (may be null if no attributes present). |
String |
getIdentifier()
|
void |
setAttributesMap(Map attributesMap)
Map of attributes (may be null if no attributes present). |
void |
setIdentifier(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 String getIdentifier()
public void setIdentifier(String identifier)
identifier
- URI/XRI OpenID.public Map getAttributesMap()
public void setAttributesMap(Map attributesMap)
attributesMap
- Map< String attribname, Listpublic String getAttribute(String key)
key
- attribute name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |