public class AuthorizationRequest extends Oauth2Request
Modifier and Type | Field and Description |
---|---|
static String |
RESPONSE_TYPE |
static String |
SCOPE |
static String |
STATE |
CLIENT_ID, REDIRECT_URI, REDIRECT_URL
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
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 getScope()
public String getState()
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 © 2015 Nuxeo SA. All rights reserved.