Class FormAuthHandler
java.lang.Object
oracle.stellent.ridc.protocol.http.auth.FormAuthHandler
- All Implemented Interfaces:
AuthenticationHandler
- Direct Known Subclasses:
OAMSSOAuthHandler,OIMSSOAuthHandler
Handler for Forms-based login to the Content Server
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RIDCHttpClientprotected RIDCHttpPostMethodCreate the post method for the login operationprotected intexecuteLogin(RIDCHttpPostMethod postMethod) Execute the login methodprotected IdcContext.LoginFormRetrieve the login form for this contextprotected StringgetLoginFormPath(IdcContext.LoginForm loginForm) Determine the location for the login form postprotected voidHandle logging into the Content Server via a login formprotected 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 schemeintSend the authenticated request to the Content ServervoidsetHttpClient(RIDCHttpClient httpClient) voidsetPingMethod(RIDCHttpMethod pingMethod) protected voidthrowFormValidateException(RIDCHttpMethod postMethod) Throw the form validation exception
-
Constructor Details
-
FormAuthHandler
-
-
Method Details
-
getHttpProtocol
-
getHttpClient
- Throws:
ProtocolException
-
setHttpClient
-
getPingMethod
-
setPingMethod
-
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- 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- Returns:
- the auth scheme associated with this handler
-
sendAuthenticatedRequest
Send the authenticated request to the Content Server- Specified by:
sendAuthenticatedRequestin interfaceAuthenticationHandler- Returns:
- the http status
- Throws:
ProtocolException
-
handleFormLogin
Handle logging into the Content Server via a login form- Throws:
ProtocolException
-
createHttpClient
- Returns:
- a new http client to use for the login
- Throws:
ProtocolException
-
executeLogin
Execute the login method- Parameters:
postMethod- the post method- Returns:
- the status from the login operation
- Throws:
ProtocolException
-
createLoginMethod
Create the post method for the login operation- Returns:
- the post method
- Throws:
ProtocolException
-
getLoginFormPath
Determine the location for the login form post- Parameters:
loginForm- the login form- Returns:
- the location as an absolute path
- Throws:
ProtocolException
-
getLoginForm
Retrieve the login form for this context- Returns:
- the login form to use
-
handleFormResponse
Handle processing the response from the form login- Parameters:
postMethod- the post methodstatus- the status of the post- Throws:
ProtocolException
-
throwFormValidateException
Throw the form validation exception- Parameters:
postMethod- the post method- Throws:
ProtocolException
-