public class OIMSSOAuthHandler extends FormAuthHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_strAuthLocation |
protected String |
m_strSiteToken |
static String |
SITE_FORM_TOKEN |
static String |
SITE_QUERY_PARAM_TOKEN |
| Constructor and Description |
|---|
OIMSSOAuthHandler(IdcHttpProtocol httpProtocol) |
| Modifier and Type | Method and Description |
|---|---|
protected RIDCHttpPostMethod |
createLoginMethod()
Create the post method for the login operation
|
protected RIDCHttpMethod |
createPingMethod()
Create the method used to PING the server
|
protected RIDCHttpMethod |
createRedirectMethod(RIDCHttpMethod httpMethod)
Create a method to follow a redirect, using the Location response header.
|
protected String |
getAuthLocation()
Returns the location of the SSO server.
|
IdcContext.HttpAuthScheme |
getAuthScheme() |
protected IdcContext.LoginForm |
getLoginForm()
Retrieve the login form for this context
|
protected String |
getLoginFormPath(IdcContext.LoginForm loginForm)
Determine the location for the login form post.
|
protected String |
getSiteToken()
Returns the site token.
|
protected void |
handleFormResponse(RIDCHttpMethod postMethod, int status)
Handle processing the response from the form login
|
boolean |
isAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod httpMethod)
Determine if the current handler can handle the given response to the auth scheme
|
protected void |
readUnusedResponseBody(RIDCHttpMethod method)
Read and discard the response body from the HttpMethod.
|
protected void |
setAuthLocation(String authLocation)
Record the location of the SSO server.
|
protected void |
setSiteToken(String siteToken)
Set the site token - a big string used to kick off the authentication.
|
createHttpClient, executeLogin, getHttpClient, getHttpProtocol, getPingMethod, handleFormLogin, sendAuthenticatedRequest, setHttpClient, setPingMethod, throwFormValidateExceptionpublic static final String SITE_QUERY_PARAM_TOKEN
public static final String SITE_FORM_TOKEN
protected String m_strSiteToken
protected String m_strAuthLocation
public OIMSSOAuthHandler(IdcHttpProtocol httpProtocol)
public boolean isAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod httpMethod) throws ProtocolException
isAuthSupported in interface AuthenticationHandlerisAuthSupported in class FormAuthHandlerhttpClient - the http client that was used to invoke the pinghttpMethod - the http method that was used to invoke the pingProtocolExceptionpublic IdcContext.HttpAuthScheme getAuthScheme()
getAuthScheme in interface AuthenticationHandlergetAuthScheme in class FormAuthHandlerprotected IdcContext.LoginForm getLoginForm()
getLoginForm in class FormAuthHandlerprotected String getLoginFormPath(IdcContext.LoginForm loginForm) throws ProtocolException
getLoginFormPath in class FormAuthHandlerloginForm - the login formProtocolExceptionprotected RIDCHttpPostMethod createLoginMethod() throws ProtocolException
createLoginMethod in class FormAuthHandlerProtocolExceptionprotected void handleFormResponse(RIDCHttpMethod postMethod, int status) throws ProtocolException
handleFormResponse in class FormAuthHandlerpostMethod - the post methodstatus - the status of the postProtocolException - if the POST was invalidprotected RIDCHttpMethod createPingMethod() throws ProtocolException
ProtocolExceptionprotected RIDCHttpMethod createRedirectMethod(RIDCHttpMethod httpMethod) throws ProtocolException
httpMethod -ProtocolExceptionprotected void setSiteToken(String siteToken)
siteToken -protected String getSiteToken()
protected void setAuthLocation(String authLocation)
authLocation -protected String getAuthLocation()
protected void readUnusedResponseBody(RIDCHttpMethod method) throws IOException, ProtocolException
method -IOExceptionProtocolException