|
||||||||||
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.OpenIDAuthResponse
public class OpenIDAuthResponse
OpenIDAuthResponse is a representation of the authentication response sent back from the OpenID Provider. The hasError() method should always be called to check if there was a problem in authenticating the OpenID.
Constructor Summary | |
---|---|
OpenIDAuthResponse()
Default constructor. |
|
OpenIDAuthResponse(java.lang.String identifier)
Create an OpenIDAuthResponse for an OpenID. |
Method Summary | |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value)
Add attribute/value pair to map of attribtues. |
java.util.Map |
getAttributes()
|
OpenIDAuthException |
getError()
Retrieves the OpenIDAuthException corresponding to the error occured while authenticating with the OpenID Provider. |
java.lang.String |
getIdentifier()
|
boolean |
hasError()
If the OpenID provider failed to authenticate the OpenID authentication request, hasError() will return true. |
void |
setAttributes(java.util.Map attributes)
|
void |
setError(OpenIDAuthException error)
|
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 OpenIDAuthResponse()
public OpenIDAuthResponse(java.lang.String identifier)
identifier
- URI/XRI OpenID.Method Detail |
---|
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
identifier
- URI/XRI OpenID to set.public java.util.Map getAttributes()
public void addAttribute(java.lang.String name, java.lang.String value)
name
- attribute name.value
- attribute value.public void setAttributes(java.util.Map attributes)
attributes
- Map< String attribname, String value >public boolean hasError()
public OpenIDAuthException getError()
public void setError(OpenIDAuthException error)
error
- OpenIDAuthException or null if no error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |