org.apache.manifoldcf.authorities.interfaces
Class AuthorizationResponse

java.lang.Object
  extended by org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse

public class AuthorizationResponse
extends java.lang.Object

An authorization response must contain the following information: (a) A list of access tokens (b) An indication of how that result was obtained - specifically: - Whether the authority was reachable or not - Whether the user was found or not - Whether the user was authorized or not


Field Summary
protected  java.lang.String[] accessTokens
          The list of access tokens
static int RESPONSE_OK
           
static int RESPONSE_UNREACHABLE
           
static int RESPONSE_USERNOTFOUND
           
static int RESPONSE_USERUNAUTHORIZED
           
protected  int responseStatus
          The status
 
Constructor Summary
AuthorizationResponse(java.lang.String[] accessTokens, int responseStatus)
          Constructor
 
Method Summary
 java.lang.String[] getAccessTokens()
          Get the tokens
 int getResponseStatus()
          Get the status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESPONSE_OK

public static final int RESPONSE_OK
See Also:
Constant Field Values

RESPONSE_UNREACHABLE

public static final int RESPONSE_UNREACHABLE
See Also:
Constant Field Values

RESPONSE_USERNOTFOUND

public static final int RESPONSE_USERNOTFOUND
See Also:
Constant Field Values

RESPONSE_USERUNAUTHORIZED

public static final int RESPONSE_USERUNAUTHORIZED
See Also:
Constant Field Values

accessTokens

protected java.lang.String[] accessTokens
The list of access tokens


responseStatus

protected int responseStatus
The status

Constructor Detail

AuthorizationResponse

public AuthorizationResponse(java.lang.String[] accessTokens,
                             int responseStatus)
Constructor

Method Detail

getResponseStatus

public int getResponseStatus()
Get the status


getAccessTokens

public java.lang.String[] getAccessTokens()
Get the tokens