public class OpenIDAuthResponse extends Object implements Serializable
Constructor and Description |
---|
OpenIDAuthResponse()
Default constructor.
|
OpenIDAuthResponse(String identifier)
Create an OpenIDAuthResponse for an OpenID.
|
Modifier and Type | Method and Description |
---|---|
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) |
public OpenIDAuthResponse()
public OpenIDAuthResponse(String identifier)
identifier
- URI/XRI OpenID.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.Copyright © 2020 Atlassian. All rights reserved.