|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.ridc.protocol.http.auth.FormAuthHandler
public class FormAuthHandler
Handler for Forms-based login to the Content Server
| Constructor Summary | |
|---|---|
FormAuthHandler(IdcHttpProtocol httpProtocol) |
|
| Method Summary | |
|---|---|
protected RIDCHttpClient |
createHttpClient() |
protected RIDCHttpPostMethod |
createLoginMethod()Create the post method for the login operation |
protected int |
executeLogin(RIDCHttpPostMethod postMethod)Execute the login method |
IdcContext.HttpAuthScheme |
getAuthScheme() |
RIDCHttpClient |
getHttpClient() |
IdcHttpProtocol |
getHttpProtocol() |
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 |
RIDCHttpMethod |
getPingMethod() |
protected void |
handleFormLogin()Handle logging into the Content Server via a login form |
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 |
int |
sendAuthenticatedRequest()Send the authenticated request to the Content Server |
void |
setHttpClient(RIDCHttpClient httpClient) |
void |
setPingMethod(RIDCHttpMethod pingMethod) |
protected void |
throwFormValidateException(RIDCHttpMethod 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 |
|---|
public FormAuthHandler(IdcHttpProtocol httpProtocol)
| Method Detail |
|---|
public IdcHttpProtocol getHttpProtocol()
public RIDCHttpClient getHttpClient()
throws ProtocolException
ProtocolExceptionpublic void setHttpClient(RIDCHttpClient httpClient)
public RIDCHttpMethod getPingMethod()
public void setPingMethod(RIDCHttpMethod pingMethod)
public boolean isAuthSupported(RIDCHttpClient httpClient,
RIDCHttpMethod httpMethod)
throws ProtocolException
isAuthSupported in interface AuthenticationHandlerhttpClient - 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 AuthenticationHandler
public int sendAuthenticatedRequest()
throws ProtocolException
sendAuthenticatedRequest in interface AuthenticationHandlerIdcClientExceptionProtocolException
protected void handleFormLogin()
throws ProtocolException
IdcClientExceptionProtocolException
protected RIDCHttpClient createHttpClient()
throws ProtocolException
IdcClientExceptionURISyntaxExceptionProtocolException
protected int executeLogin(RIDCHttpPostMethod postMethod)
throws ProtocolException
postMethod - the post methodProtocolException
protected RIDCHttpPostMethod createLoginMethod()
throws ProtocolException
IdcClientExceptionProtocolException
protected String getLoginFormPath(IdcContext.LoginForm loginForm)
throws ProtocolException
loginForm - the login formProtocolExceptionprotected IdcContext.LoginForm getLoginForm()
protected void handleFormResponse(RIDCHttpMethod postMethod,
int status)
throws ProtocolException
postMethod - the post methodstatus - the status of the postIdcClientExceptionProtocolException
protected void throwFormValidateException(RIDCHttpMethod postMethod)
throws ProtocolException
postMethod - the post methodProtocolException
|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||