|
||||||||||
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(String identifier)
Create an OpenIDAuthResponse for an OpenID. |
Method Summary | |
---|---|
void |
addAttribute(String name,
String value)
Add attribute/value pair to map of attribtues. |
Map |
getAttributes()
|
OpenIDAuthException |
getError()
Retrieves the OpenIDAuthException corresponding to the error occured while authenticating with the OpenID Provider. |
String |
getIdentifier()
|
boolean |
hasError()
If the OpenID provider failed to authenticate the OpenID authentication request, hasError() will return true. |
void |
setAttributes(Map attributes)
|
void |
setError(OpenIDAuthException error)
|
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 OpenIDAuthResponse()
public OpenIDAuthResponse(String identifier)
identifier
- URI/XRI OpenID.Method Detail |
---|
public String getIdentifier()
public void setIdentifier(String identifier)
identifier
- URI/XRI OpenID to set.public Map getAttributes()
public void addAttribute(String name, String value)
name
- attribute name.value
- attribute value.public void setAttributes(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 |