Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


oracle.stellent.ridc.protocol.http.auth
Class FormAuthHandler

java.lang.Object
  extended by oracle.stellent.ridc.protocol.http.auth.FormAuthHandler

All Implemented Interfaces:
AuthenticationHandler
Direct Known Subclasses:
OAMSSOAuthHandler, OIMSSOAuthHandler

public class FormAuthHandler
extends java.lang.Object
implements AuthenticationHandler

Handler for Forms-based login to the Content Server


Constructor Summary
FormAuthHandler(IdcHttpProtocol httpProtocol)
           

 

Method Summary
protected  org.apache.commons.httpclient.HttpClient createHttpClient()
           
protected  org.apache.commons.httpclient.methods.PostMethod createLoginMethod()
          Create the post method for the login operation
protected  int executeLogin(org.apache.commons.httpclient.methods.PostMethod postMethod)
          Execute the login method
 IdcContext.HttpAuthScheme getAuthScheme()
           
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 IdcHttpProtocol getHttpProtocol()
           
protected  IdcContext.LoginForm getLoginForm()
          Retrieve the login form for this context
protected  java.lang.String getLoginFormPath(IdcContext.LoginForm loginForm)
          Determine the location for the login form post
 org.apache.commons.httpclient.HttpMethod getPingMethod()
           
protected  void handleFormLogin()
          Handle logging into the Content Server via a login form
protected  void handleFormResponse(org.apache.commons.httpclient.methods.PostMethod postMethod, int status)
          Handle processing the response from the form login
 boolean isAuthSupported(org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.HttpMethod httpMethod)
          Determine if the current handler can handle the given response to the auth scheme
 int sendAuthenticatedRequest()
          Send the authenticated request to the Content Server
 void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
           
 void setPingMethod(org.apache.commons.httpclient.HttpMethod pingMethod)
           
protected  void throwFormValidateException(org.apache.commons.httpclient.methods.PostMethod postMethod)
          Throw the form validation exception

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

FormAuthHandler

public FormAuthHandler(IdcHttpProtocol httpProtocol)

Method Detail

getHttpProtocol

public IdcHttpProtocol getHttpProtocol()

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()

setHttpClient

public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)

getPingMethod

public org.apache.commons.httpclient.HttpMethod getPingMethod()

setPingMethod

public void setPingMethod(org.apache.commons.httpclient.HttpMethod pingMethod)

isAuthSupported

public boolean isAuthSupported(org.apache.commons.httpclient.HttpClient httpClient,
                               org.apache.commons.httpclient.HttpMethod httpMethod)
Determine if the current handler can handle the given response to the auth scheme
Specified by:
isAuthSupported in interface AuthenticationHandler
Parameters:
httpClient - the http client that was used to invoke the ping
httpMethod - the http method that was used to invoke the ping
Returns:
true if the handler can support the requests to the given server

getAuthScheme

public IdcContext.HttpAuthScheme getAuthScheme()
Specified by:
getAuthScheme in interface AuthenticationHandler
Returns:
the auth scheme associated with this handler

sendAuthenticatedRequest

public int sendAuthenticatedRequest()
                             throws ProtocolException
Send the authenticated request to the Content Server
Specified by:
sendAuthenticatedRequest in interface AuthenticationHandler
Returns:
the http status
Throws:
ProtocolException

handleFormLogin

protected void handleFormLogin()
                        throws ProtocolException
Handle logging into the Content Server via a login form
Throws:
ProtocolException - if a login error occurs

createHttpClient

protected org.apache.commons.httpclient.HttpClient createHttpClient()
Returns:
a new http client to use for the login

executeLogin

protected int executeLogin(org.apache.commons.httpclient.methods.PostMethod postMethod)
                    throws ProtocolException
Execute the login method
Parameters:
postMethod - the post method
Returns:
the status from the login operation
Throws:
ProtocolException

createLoginMethod

protected org.apache.commons.httpclient.methods.PostMethod createLoginMethod()
                                                                      throws ProtocolException
Create the post method for the login operation
Returns:
the post method
Throws:
ProtocolException

getLoginFormPath

protected java.lang.String getLoginFormPath(IdcContext.LoginForm loginForm)
                                     throws ProtocolException
Determine the location for the login form post
Parameters:
loginForm - the login form
Returns:
the location as an absolute path
Throws:
ProtocolException

getLoginForm

protected IdcContext.LoginForm getLoginForm()
Retrieve the login form for this context
Returns:
the login form to use

handleFormResponse

protected void handleFormResponse(org.apache.commons.httpclient.methods.PostMethod postMethod,
                                  int status)
                           throws ProtocolException
Handle processing the response from the form login
Parameters:
postMethod - the post method
status - the status of the post
Throws:
ProtocolException - if the POST was invalid

throwFormValidateException

protected void throwFormValidateException(org.apache.commons.httpclient.methods.PostMethod postMethod)
                                   throws ProtocolException
Throw the form validation exception
Parameters:
postMethod - the post method
Throws:
ProtocolException

Skip navigation links

Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1.1)

E17274-02


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.