Class AuthorizationResponse
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected java.lang.String[]
accessTokens
The list of access tokensstatic int
RESPONSE_OK
static int
RESPONSE_UNREACHABLE
static int
RESPONSE_USERNOTFOUND
static int
RESPONSE_USERUNAUTHORIZED
protected int
responseStatus
The status
-
Constructor Summary
Constructors Constructor Description AuthorizationResponse(java.lang.String[] accessTokens, int responseStatus)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getAccessTokens()
Get the tokensint
getResponseStatus()
Get the status
-
-
-
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
-
-