|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.authorities.system.AuthRequest
public class AuthRequest
This 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 | |
|---|---|
static java.lang.String |
_rcsid
|
protected boolean |
answerComplete
|
protected java.lang.Throwable |
answerException
|
protected AuthorizationResponse |
answerResponse
|
protected java.lang.String |
className
|
protected ConfigParams |
configParameters
|
protected java.lang.String |
identifyingString
|
protected int |
maxConnections
|
protected java.lang.String |
userID
|
| Constructor Summary | |
|---|---|
AuthRequest(java.lang.String userID,
java.lang.String className,
java.lang.String identifyingString,
ConfigParams configParameters,
int maxConnections)
Construct the request, and record the question. |
|
| Method Summary | |
|---|---|
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 |
java.lang.String |
getClassName()
Get the class name |
ConfigParams |
getConfigurationParams()
Get the configuration parameters |
java.lang.String |
getIdentifyingString()
Get the identifying string, to pass back to the user if there was a problem |
int |
getMaxConnections()
Get the maximum number of connections |
java.lang.String |
getUserID()
Get the user id |
void |
waitForComplete()
Wait for an auth request to be complete. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected java.lang.String userID
protected java.lang.String className
protected java.lang.String identifyingString
protected ConfigParams configParameters
protected int maxConnections
protected boolean answerComplete
protected AuthorizationResponse answerResponse
protected java.lang.Throwable answerException
| Constructor Detail |
|---|
public AuthRequest(java.lang.String userID,
java.lang.String className,
java.lang.String identifyingString,
ConfigParams configParameters,
int maxConnections)
| Method Detail |
|---|
public java.lang.String getUserID()
public java.lang.String getClassName()
public java.lang.String getIdentifyingString()
public ConfigParams getConfigurationParams()
public int getMaxConnections()
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||