Class AuthRequest
- java.lang.Object
-
- org.apache.manifoldcf.authorities.system.AuthRequest
-
public class AuthRequest extends java.lang.ObjectThis class describes a authorization request. The request has state: It can be in an incomplete state, or it can be in a complete state. The thread that cares whether the request is complete needs to be able to wait for that situation to occur, so the request has a method that does just that.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected booleananswerCompleteprotected java.lang.ThrowableanswerExceptionprotected AuthorizationResponseanswerResponseprotected IAuthorityConnectionauthorityConnectionprotected java.lang.StringidentifyingStringprotected java.lang.StringuserID
-
Constructor Summary
Constructors Constructor Description AuthRequest(IAuthorityConnection authorityConnection, java.lang.String identifyingString)Construct the request, and record the question.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleteRequest(AuthorizationResponse answerResponse, java.lang.Throwable answerException)Note that the request is complete, and record the answers.java.lang.ThrowablegetAnswerException()Get the answer exceptionAuthorizationResponsegetAnswerResponse()Get the answer tokensIAuthorityConnectiongetAuthorityConnection()Get the authority connectionjava.lang.StringgetIdentifyingString()Get the identifying string, to pass back to the user if there was a problemjava.lang.StringgetUserID()Get the user idvoidsetUserID(java.lang.String userID)Set the user ID we'll be usingvoidwaitForComplete()Wait for an auth request to be complete.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
userID
protected java.lang.String userID
-
authorityConnection
protected final IAuthorityConnection authorityConnection
-
identifyingString
protected final java.lang.String identifyingString
-
answerComplete
protected boolean answerComplete
-
answerResponse
protected AuthorizationResponse answerResponse
-
answerException
protected java.lang.Throwable answerException
-
-
Constructor Detail
-
AuthRequest
public AuthRequest(IAuthorityConnection authorityConnection, java.lang.String identifyingString)
Construct the request, and record the question.
-
-
Method Detail
-
setUserID
public void setUserID(java.lang.String userID)
Set the user ID we'll be using
-
getUserID
public java.lang.String getUserID()
Get the user id
-
getAuthorityConnection
public IAuthorityConnection getAuthorityConnection()
Get the authority connection
-
getIdentifyingString
public java.lang.String getIdentifyingString()
Get the identifying string, to pass back to the user if there was a problem
-
waitForComplete
public void waitForComplete() throws java.lang.InterruptedExceptionWait for an auth request to be complete.- Throws:
java.lang.InterruptedException
-
completeRequest
public void completeRequest(AuthorizationResponse answerResponse, java.lang.Throwable answerException)
Note that the request is complete, and record the answers.
-
getAnswerResponse
public AuthorizationResponse getAnswerResponse()
Get the answer tokens
-
getAnswerException
public java.lang.Throwable getAnswerException()
Get the answer exception
-
-