public class NuxeoOAuth1Servlet extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_X_WWW_FORM_URLENCODED |
static String |
DURATION_PARAM |
static String |
ENDPOINT_ACCESS_TOKEN |
static String |
ENDPOINT_AUTHORIZE |
static String |
ENDPOINT_REQUEST_TOKEN |
static String |
GRANT_PAGE |
static String |
LOGIN_PAGE |
static String |
NUXEO_LOGIN_PARAM |
static String |
OAUTH_CALLBACK_CONFIRMED |
static String |
OAUTH_INFO_SESSION_KEY |
static String |
OAUTH_VERIFIER |
| Constructor and Description |
|---|
NuxeoOAuth1Servlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doGetAccessToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doGetAuthorize(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates a request token, redirects to the Nuxeo login page, and provides a later redirect URL to the OAuth
grant page.
|
protected void |
doGetRequestToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPostAuthorize(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Adds a verifier and username to the request token and redirects to the callback URL.
|
protected static String |
urlEncode(String string) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String ENDPOINT_REQUEST_TOKEN
public static final String ENDPOINT_AUTHORIZE
public static final String ENDPOINT_ACCESS_TOKEN
public static final String OAUTH_VERIFIER
public static final String OAUTH_CALLBACK_CONFIRMED
public static final String NUXEO_LOGIN_PARAM
public static final String DURATION_PARAM
public static final String OAUTH_INFO_SESSION_KEY
public static final String GRANT_PAGE
public static final String LOGIN_PAGE
public static final String APPLICATION_X_WWW_FORM_URLENCODED
public NuxeoOAuth1Servlet()
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doGetAuthorize(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionprotected void doPostAuthorize(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionprotected void doGetRequestToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionprotected void doGetAccessToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionCopyright © 2019 Nuxeo. All rights reserved.