public abstract class AbstractAuthorizationServlet extends CRServlet implements Presentable
Created by Jeff Gaynor
on 1/14/14 at 11:50 AM
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractAuthorizationServlet.AuthorizedState
State object after authorization has worked.
|
static class |
AbstractAuthorizationServlet.MyMyProxyLogon |
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORIZATION_ACTION_KEY |
static int |
AUTHORIZATION_ACTION_OK |
static String |
AUTHORIZATION_ACTION_OK_VALUE |
static int |
AUTHORIZATION_ACTION_START |
static String |
AUTHORIZATION_PASSWORD_KEY |
static String |
AUTHORIZATION_USER_NAME_KEY |
static String |
AUTHORIZATION_USER_NAME_VALUE |
static String |
ERROR_PAGE |
static String |
INITIAL_PAGE |
static String |
OK_PAGE |
static String |
REMOTE_USER_INITIAL_PAGE |
static String |
RETRY_MESSAGE |
caThread, ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, kpt, myproxyConnectionCache, myproxyConnectionCleanup, transactionCleanup
storeUpdatesDone
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
AbstractAuthorizationServlet() |
Modifier and Type | Method and Description |
---|---|
abstract String |
createCallback(ServiceTransaction transaction,
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 ServiceTransaction |
getAndCheckTransaction(String token) |
protected String |
getParam(javax.servlet.http.HttpServletRequest request,
String key) |
int |
getState(javax.servlet.http.HttpServletRequest request) |
void |
handleError(PresentableState state,
Throwable t)
Handle and error.
|
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 void |
setClientRequestAttributes(AbstractAuthorizationServlet.AuthorizedState aState) |
protected abstract void |
setupMPConnection(ServiceTransaction trans,
String username,
String password) |
ServiceTransaction |
verifyAndGet(IssuerResponse iResponse)
This is called after the response is received so that the system can get the approproate
transaction.
|
createMPConnection, createMPConnection, doCertRequest, doRealCertRequest, getAccessToken, 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 static final String AUTHORIZATION_ACTION_KEY
public static final String AUTHORIZATION_USER_NAME_KEY
public static final String AUTHORIZATION_USER_NAME_VALUE
public static final String AUTHORIZATION_PASSWORD_KEY
public static final String AUTHORIZATION_ACTION_OK_VALUE
public static final int AUTHORIZATION_ACTION_OK
public static final int AUTHORIZATION_ACTION_START
public static final String RETRY_MESSAGE
public static String INITIAL_PAGE
public static String REMOTE_USER_INITIAL_PAGE
public static String OK_PAGE
public static String ERROR_PAGE
public ServiceTransaction verifyAndGet(IssuerResponse iResponse) throws IOException
MyProxyDelegationServlet
verifyAndGet
in class MyProxyDelegationServlet
IOException
public abstract String createCallback(ServiceTransaction transaction, Map<String,String> params)
transaction
- public void prepare(PresentableState state) throws Throwable
Presentable
prepare
in interface Presentable
Throwable
protected void setClientRequestAttributes(AbstractAuthorizationServlet.AuthorizedState aState)
public void present(PresentableState state) throws Throwable
Presentable
present
in interface Presentable
Throwable
public void handleError(PresentableState state, Throwable t) throws IOException, javax.servlet.ServletException
Presentable
handleError
in interface Presentable
IOException
javax.servlet.ServletException
protected void doIt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
doIt
in class AbstractServlet
Throwable
public int getState(javax.servlet.http.HttpServletRequest request)
protected ServiceTransaction getAndCheckTransaction(String token) throws IOException
IOException
protected void createRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServiceTransaction trans) throws Throwable
Throwable
protected abstract void setupMPConnection(ServiceTransaction trans, String username, String password) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2019. All Rights Reserved.