public class OA2AuthorizationServer extends AbstractAuthorizationServlet
Created by Jeff Gaynor
on 2/7/14 at 11:44 AM
AbstractAuthorizationServlet.AuthorizedState, AbstractAuthorizationServlet.MyMyProxyLogon
Modifier and Type | Field and Description |
---|---|
String |
AUTHORIZATION_REFRESH_TOKEN_LIFETIME_KEY |
String |
AUTHORIZATION_REFRESH_TOKEN_LIFETIME_VALUE |
String |
AUTHORIZED_ENDPOINT |
AUTHORIZATION_ACTION_KEY, AUTHORIZATION_ACTION_OK, AUTHORIZATION_ACTION_OK_VALUE, AUTHORIZATION_ACTION_START, AUTHORIZATION_PASSWORD_KEY, AUTHORIZATION_USER_NAME_KEY, AUTHORIZATION_USER_NAME_VALUE, ERROR_PAGE, INITIAL_PAGE, OK_PAGE, REMOTE_USER_INITIAL_PAGE, RETRY_MESSAGE
caThread, ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, kpt, myproxyConnectionCache, myproxyConnectionCleanup, transactionCleanup
storeUpdatesDone
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
OA2AuthorizationServer() |
Modifier and Type | Method and Description |
---|---|
String |
createCallback(ServiceTransaction trans,
Map<String,String> params)
This will take whatever the passed in callback from the client is and append any parameters needed.
|
protected void |
createRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ServiceTransaction trans) |
protected void |
doIt(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doRealCertRequest(ServiceTransaction trans,
String statusString)
Spec says we do the cert request in the authorization servlet.
|
protected AccessToken |
getAccessToken(javax.servlet.http.HttpServletRequest request)
There are various requirements for transmitting the access token, so specific methods have to be used.
|
protected OA2AuthorizedServletUtil |
getInitUtil() |
void |
prepare(PresentableState state)
This is invoked before the main processing for this servlet.
|
void |
present(PresentableState state)
This is invoked after the main processing for the servlet.
|
protected String |
scopesToString(OA2ServiceTransaction t) |
protected void |
setClientRequestAttributes(AbstractAuthorizationServlet.AuthorizedState aState) |
protected void |
setupMPConnection(ServiceTransaction trans,
String username,
String password) |
getAndCheckTransaction, getParam, getState, handleError, verifyAndGet
createMPConnection, createMPConnection, doCertRequest, getX509Certificates
addNotificationListener, checkClientApproval, destroy, getAGI, getATI, getClient, getClient, getClient, getFirstParameters, getGrantIDFromRequest, getMPConnection, getMPConnection, getMyproxyConnectionCache, getMyproxyServices, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, hasMPConnection, hasMPConnection, isEmpty, loadProperties2, newTransaction, postprocess, preprocess, realStoreUpdates, removeNotificationListener, say, shutdownCleanup, storeUpdates
loadEnvironment, processStoreCheck
CONST, debug, doGet, doPing, doPost, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getFirstParameterValue, getInitialization, getMyLogger, handleException, info, init, isDebugOn, printAllParameters, resetState, setConfigurationLoader, setDebugOn, setEnvironment, setExceptionHandler, setInitialization, warn
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public String AUTHORIZATION_REFRESH_TOKEN_LIFETIME_KEY
public String AUTHORIZED_ENDPOINT
public String AUTHORIZATION_REFRESH_TOKEN_LIFETIME_VALUE
protected AccessToken getAccessToken(javax.servlet.http.HttpServletRequest request)
CRServlet
getAccessToken
in class CRServlet
protected String scopesToString(OA2ServiceTransaction t)
protected void setClientRequestAttributes(AbstractAuthorizationServlet.AuthorizedState aState)
setClientRequestAttributes
in class AbstractAuthorizationServlet
protected OA2AuthorizedServletUtil getInitUtil()
protected void doIt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
doIt
in class AbstractAuthorizationServlet
Throwable
public void prepare(PresentableState state) throws Throwable
Presentable
prepare
in interface Presentable
prepare
in class AbstractAuthorizationServlet
Throwable
public void present(PresentableState state) throws Throwable
Presentable
present
in interface Presentable
present
in class AbstractAuthorizationServlet
Throwable
protected void createRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServiceTransaction trans) throws Throwable
createRedirect
in class AbstractAuthorizationServlet
Throwable
public String createCallback(ServiceTransaction trans, Map<String,String> params)
AbstractAuthorizationServlet
createCallback
in class AbstractAuthorizationServlet
protected void doRealCertRequest(ServiceTransaction trans, String statusString) throws Throwable
doRealCertRequest
in class CRServlet
trans
- statusString
- Throwable
protected void setupMPConnection(ServiceTransaction trans, String username, String password) throws GeneralSecurityException
setupMPConnection
in class AbstractAuthorizationServlet
GeneralSecurityException
Copyright © 2019. All Rights Reserved.