public class AuthRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
protected boolean |
answerComplete |
protected java.lang.Throwable |
answerException |
protected AuthorizationResponse |
answerResponse |
protected IAuthorityConnection |
authorityConnection |
protected java.lang.String |
identifyingString |
protected java.lang.String |
userID |
Constructor and Description |
---|
AuthRequest(IAuthorityConnection authorityConnection,
java.lang.String identifyingString)
Construct the request, and record the question.
|
Modifier and Type | Method and Description |
---|---|
void |
completeRequest(AuthorizationResponse answerResponse,
java.lang.Throwable answerException)
Note that the request is complete, and record the answers.
|
java.lang.Throwable |
getAnswerException()
Get the answer exception
|
AuthorizationResponse |
getAnswerResponse()
Get the answer tokens
|
IAuthorityConnection |
getAuthorityConnection()
Get the authority connection
|
java.lang.String |
getIdentifyingString()
Get the identifying string, to pass back to the user if there was a problem
|
java.lang.String |
getUserID()
Get the user id
|
void |
setUserID(java.lang.String userID)
Set the user ID we'll be using
|
void |
waitForComplete()
Wait for an auth request to be complete.
|
public static final java.lang.String _rcsid
protected java.lang.String userID
protected final IAuthorityConnection authorityConnection
protected final java.lang.String identifyingString
protected boolean answerComplete
protected AuthorizationResponse answerResponse
protected java.lang.Throwable answerException
public AuthRequest(IAuthorityConnection authorityConnection, java.lang.String identifyingString)
public void setUserID(java.lang.String userID)
public java.lang.String getUserID()
public IAuthorityConnection getAuthorityConnection()
public java.lang.String getIdentifyingString()
public void waitForComplete() throws java.lang.InterruptedException
java.lang.InterruptedException
public void completeRequest(AuthorizationResponse answerResponse, java.lang.Throwable answerException)
public AuthorizationResponse getAnswerResponse()
public java.lang.Throwable getAnswerException()