public class AuthorizationRequest extends Oauth2Request
Modifier and Type | Field and Description |
---|---|
protected String |
authorizationCode |
protected String |
authorizationKey |
protected Date |
creationDate |
protected static Map<String,AuthorizationRequest> |
requests |
static String |
RESPONSE_TYPE |
protected String |
responseType |
protected String |
scope |
static String |
SCOPE |
protected String |
sessionId |
protected String |
state |
static String |
STATE |
protected String |
username |
CLIENT_ID, clientId, REDIRECT_URI, REDIRECT_URL, redirectUri
Constructor and Description |
---|
AuthorizationRequest() |
AuthorizationRequest(javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
String |
checkError() |
static AuthorizationRequest |
from(javax.servlet.http.HttpServletRequest request) |
static AuthorizationRequest |
fromCode(String authorizationCode) |
String |
getAuthorizationCode() |
String |
getAuthorizationKey() |
String |
getResponseType() |
String |
getScope() |
String |
getState() |
String |
getUsername() |
boolean |
isExpired() |
boolean |
isValidState(javax.servlet.http.HttpServletRequest request) |
void |
setUsername(String username) |
decodeParameter, getClientId, getRedirectUri
protected static Map<String,AuthorizationRequest> requests
protected String responseType
protected Date creationDate
protected String authorizationCode
protected String authorizationKey
public static final String RESPONSE_TYPE
public static final String SCOPE
public static final String STATE
public AuthorizationRequest()
public AuthorizationRequest(javax.servlet.http.HttpServletRequest request)
public String checkError()
public boolean isExpired()
public boolean isValidState(javax.servlet.http.HttpServletRequest request)
public String getUsername()
public String getResponseType()
public String getAuthorizationCode()
public String getAuthorizationKey()
public static AuthorizationRequest from(javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
UnsupportedEncodingException
public static AuthorizationRequest fromCode(String authorizationCode)
public void setUsername(String username)
Copyright © 2016 Nuxeo SA. All rights reserved.