org.apache.manifoldcf.authorities.system
Class AuthRequest

java.lang.Object
  extended by org.apache.manifoldcf.authorities.system.AuthRequest

public class AuthRequest
extends java.lang.Object

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

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values

userID

protected java.lang.String userID

className

protected java.lang.String className

identifyingString

protected java.lang.String identifyingString

configParameters

protected ConfigParams configParameters

maxConnections

protected int maxConnections

answerComplete

protected boolean answerComplete

answerResponse

protected AuthorizationResponse answerResponse

answerException

protected java.lang.Throwable answerException
Constructor Detail

AuthRequest

public 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 Detail

getUserID

public java.lang.String getUserID()
Get the user id


getClassName

public java.lang.String getClassName()
Get the class name


getIdentifyingString

public java.lang.String getIdentifyingString()
Get the identifying string, to pass back to the user if there was a problem


getConfigurationParams

public ConfigParams getConfigurationParams()
Get the configuration parameters


getMaxConnections

public int getMaxConnections()
Get the maximum number of connections


waitForComplete

public void waitForComplete()
                     throws java.lang.InterruptedException
Wait 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