public class AuthorizationRequest extends OAuth2Request
Modifier and Type | Field and Description |
---|---|
protected String |
authorizationCode |
protected String |
codeChallenge |
protected String |
codeChallengeMethod |
protected Date |
creationDate |
static String |
MISSING_REQUIRED_FIELD_MESSAGE |
protected String |
responseType |
protected String |
scope |
static String |
STORE_NAME |
protected String |
username |
clientId, redirectURI
Modifier | Constructor and Description |
---|---|
protected |
AuthorizationRequest(javax.servlet.http.HttpServletRequest request) |
protected |
AuthorizationRequest(Map<String,Serializable> map) |
Modifier and Type | Method and Description |
---|---|
OAuth2Error |
checkError() |
static AuthorizationRequest |
fromMap(Map<String,Serializable> map) |
static AuthorizationRequest |
fromRequest(javax.servlet.http.HttpServletRequest request) |
static AuthorizationRequest |
get(String key) |
String |
getAuthorizationCode() |
String |
getCodeChallenge() |
String |
getCodeChallengeMethod() |
String |
getResponseType() |
String |
getScope() |
String |
getUsername() |
boolean |
isCodeVerifierValid(String codeVerifier) |
boolean |
isExpired() |
static void |
remove(String key) |
static void |
store(String key,
AuthorizationRequest authorizationRequest) |
Map<String,Serializable> |
toMap() |
decodeParameter, getClientId, getRedirectURI
public static final String MISSING_REQUIRED_FIELD_MESSAGE
public static final String STORE_NAME
protected String responseType
protected Date creationDate
protected String authorizationCode
protected String codeChallenge
protected String codeChallengeMethod
protected AuthorizationRequest(javax.servlet.http.HttpServletRequest request)
protected AuthorizationRequest(Map<String,Serializable> map)
public static AuthorizationRequest fromRequest(javax.servlet.http.HttpServletRequest request)
public static AuthorizationRequest fromMap(Map<String,Serializable> map)
public static void store(String key, AuthorizationRequest authorizationRequest)
public static AuthorizationRequest get(String key)
public OAuth2Error checkError()
public boolean isExpired()
public String getResponseType()
public String getUsername()
public String getAuthorizationCode()
public String getCodeChallenge()
public String getCodeChallengeMethod()
public Map<String,Serializable> toMap()
public boolean isCodeVerifierValid(String codeVerifier)
Copyright © 2017 Nuxeo. All rights reserved.