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