Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


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

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

All Implemented Interfaces:
AuthenticationHandler

public class BasicAuthHandler
extends Object
implements AuthenticationHandler

Handler that sets the appropriate config on HttpClient to perform a BasicAuthentication


Constructor Summary
BasicAuthHandler(IdcHttpProtocol httpProtocol)
           

 

Method Summary
 IdcContext.HttpAuthScheme getAuthScheme()
           
 IdcHttpProtocol getHttpProtocol()
           
 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

 

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

 

Constructor Detail

BasicAuthHandler

public BasicAuthHandler(IdcHttpProtocol httpProtocol)

Method Detail

getHttpProtocol

public IdcHttpProtocol getHttpProtocol()

isAuthSupported

public boolean isAuthSupported(RIDCHttpClient httpClient,
                               RIDCHttpMethod 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 authentication 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

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


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