Class OIMSSOAuthHandler
java.lang.Object
oracle.stellent.ridc.protocol.http.auth.FormAuthHandler
oracle.stellent.ridc.protocol.http.auth.OIMSSOAuthHandler
- All Implemented Interfaces:
AuthenticationHandler
Oracle Single Sign-on via the Oracle Identity Management (OIM) authentication handler.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RIDCHttpPostMethodCreate the post method for the login operationprotected RIDCHttpMethodCreate the method used to PING the serverprotected RIDCHttpMethodcreateRedirectMethod(RIDCHttpMethod httpMethod) Create a method to follow a redirect, using the Location response header.protected StringReturns the location of the SSO server.protected IdcContext.LoginFormRetrieve the login form for this contextprotected StringgetLoginFormPath(IdcContext.LoginForm loginForm) Determine the location for the login form post.protected StringReturns the site token.protected voidhandleFormResponse(RIDCHttpMethod postMethod, int status) Handle processing the response from the form loginbooleanisAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod httpMethod) Determine if the current handler can handle the given response to the auth schemeprotected voidreadUnusedResponseBody(RIDCHttpMethod method) Read and discard the response body from the HttpMethod.protected voidsetAuthLocation(String authLocation) Record the location of the SSO server.protected voidsetSiteToken(String siteToken) Set the site token - a big string used to kick off the authentication.Methods inherited from class oracle.stellent.ridc.protocol.http.auth.FormAuthHandler
createHttpClient, executeLogin, getHttpClient, getHttpProtocol, getPingMethod, handleFormLogin, sendAuthenticatedRequest, setHttpClient, setPingMethod, throwFormValidateException
-
Field Details
-
SITE_QUERY_PARAM_TOKEN
- See Also:
-
SITE_FORM_TOKEN
- See Also:
-
m_strSiteToken
-
m_strAuthLocation
-
-
Constructor Details
-
OIMSSOAuthHandler
-
-
Method Details
-
isAuthSupported
public boolean isAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod httpMethod) throws ProtocolException Determine if the current handler can handle the given response to the auth scheme- Specified by:
isAuthSupportedin interfaceAuthenticationHandler- Overrides:
isAuthSupportedin classFormAuthHandler- Parameters:
httpClient- the http client that was used to invoke the pinghttpMethod- the http method that was used to invoke the ping- Returns:
- true if the handler can support the requests to the given server
- Throws:
ProtocolException
-
getAuthScheme
- Specified by:
getAuthSchemein interfaceAuthenticationHandler- Overrides:
getAuthSchemein classFormAuthHandler- Returns:
- the authentication scheme associated with this handler
-
getLoginForm
Retrieve the login form for this context- Overrides:
getLoginFormin classFormAuthHandler- Returns:
- the login form to use
-
getLoginFormPath
Determine the location for the login form post.- Overrides:
getLoginFormPathin classFormAuthHandler- Parameters:
loginForm- the login form- Returns:
- the location as an absolute path
- Throws:
ProtocolException
-
createLoginMethod
Create the post method for the login operation- Overrides:
createLoginMethodin classFormAuthHandler- Returns:
- the post method
- Throws:
ProtocolException
-
handleFormResponse
Handle processing the response from the form login- Overrides:
handleFormResponsein classFormAuthHandler- Parameters:
postMethod- the post methodstatus- the status of the post- Throws:
ProtocolException- if the POST was invalid
-
createPingMethod
Create the method used to PING the server- Returns:
- the http method to ping
- Throws:
ProtocolException
-
createRedirectMethod
Create a method to follow a redirect, using the Location response header.- Parameters:
httpMethod-- Returns:
- Throws:
ProtocolException
-
setSiteToken
Set the site token - a big string used to kick off the authentication.- Parameters:
siteToken-
-
getSiteToken
Returns the site token.- Returns:
-
setAuthLocation
Record the location of the SSO server.- Parameters:
authLocation-
-
getAuthLocation
Returns the location of the SSO server.- Returns:
-
readUnusedResponseBody
Read and discard the response body from the HttpMethod.- Parameters:
method-- Throws:
IOExceptionProtocolException
-