public class OAuthResponseParams extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPROVAL_URL |
static String |
CLIENT_STATE |
static String |
ERROR_CODE |
static String |
ERROR_TEXT |
| Constructor and Description |
|---|
OAuthResponseParams(SecurityToken securityToken,
HttpRequest originalRequest,
BlobCrypter stateCrypter)
Create response parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestTrace(HttpRequest request,
HttpResponse response)
Add a request/response pair to our trace of actions associated with this request.
|
void |
addToResponse(HttpResponseBuilder response,
OAuthRequestException e)
Update a response with additional data to be returned to the application.
|
String |
getAznUrl() |
OAuthClientState |
getNewClientState()
Get the state we will return to the client.
|
void |
logDetailedInfo(String note,
Throwable e) |
void |
logDetailedWarning(String note)
Log a warning message that includes the details of the request.
|
void |
logDetailedWarning(String note,
Throwable e)
Log a warning message that includes the details of the request and the thrown exception.
|
boolean |
sawErrorResponse() |
boolean |
sendTraceToClient() |
void |
setAznUrl(String aznUrl)
Set the authorization URL we will return to the client.
|
void |
setSendTraceToClient(boolean sendTraceToClient) |
public static final String CLIENT_STATE
public static final String APPROVAL_URL
public static final String ERROR_CODE
public static final String ERROR_TEXT
public OAuthResponseParams(SecurityToken securityToken, HttpRequest originalRequest, BlobCrypter stateCrypter)
public void logDetailedWarning(String note)
public void logDetailedWarning(String note, Throwable e)
public void addRequestTrace(HttpRequest request, HttpResponse response)
public boolean sawErrorResponse()
public void addToResponse(HttpResponseBuilder response, OAuthRequestException e)
public OAuthClientState getNewClientState()
public String getAznUrl()
public void setAznUrl(String aznUrl)
public boolean sendTraceToClient()
public void setSendTraceToClient(boolean sendTraceToClient)
Copyright © 2007-2012. All Rights Reserved.