Class AuthorizationRequest
- java.lang.Object
-
- org.nuxeo.ecm.platform.oauth2.request.OAuth2Request
-
- org.nuxeo.ecm.platform.oauth2.request.AuthorizationRequest
-
public class AuthorizationRequest extends OAuth2Request
- Since:
- 5.9.2
- Author:
- Arnaud Kervern
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class org.nuxeo.ecm.platform.oauth2.request.OAuth2Request
clientId, redirectURI
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AuthorizationRequest(Map<String,Serializable> map)
protected
AuthorizationRequest(javax.servlet.http.HttpServletRequest request)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.nuxeo.ecm.platform.oauth2.request.OAuth2Request
decodeParameter, getClientId, getRedirectURI
-
-
-
-
Field Detail
-
MISSING_REQUIRED_FIELD_MESSAGE
public static final String MISSING_REQUIRED_FIELD_MESSAGE
- See Also:
- Constant Field Values
-
STORE_NAME
public static final String STORE_NAME
- See Also:
- Constant Field Values
-
responseType
protected String responseType
-
scope
protected String scope
-
creationDate
protected Date creationDate
-
authorizationCode
protected String authorizationCode
-
username
protected String username
-
codeChallenge
protected String codeChallenge
-
codeChallengeMethod
protected String codeChallengeMethod
-
-
Constructor Detail
-
AuthorizationRequest
protected AuthorizationRequest(javax.servlet.http.HttpServletRequest request)
-
AuthorizationRequest
protected AuthorizationRequest(Map<String,Serializable> map)
-
-
Method Detail
-
fromRequest
public static AuthorizationRequest fromRequest(javax.servlet.http.HttpServletRequest request)
-
fromMap
public static AuthorizationRequest fromMap(Map<String,Serializable> map)
-
store
public static void store(String key, AuthorizationRequest authorizationRequest)
-
get
public static AuthorizationRequest get(String key)
-
remove
public static void remove(String key)
-
checkError
public OAuth2Error checkError()
-
isExpired
public boolean isExpired()
-
getResponseType
public String getResponseType()
-
getScope
public String getScope()
-
getUsername
public String getUsername()
-
getAuthorizationCode
public String getAuthorizationCode()
-
getCodeChallenge
public String getCodeChallenge()
-
getCodeChallengeMethod
public String getCodeChallengeMethod()
-
toMap
public Map<String,Serializable> toMap()
-
isCodeVerifierValid
public boolean isCodeVerifierValid(String codeVerifier)
-
-