Interface AuthenticationHandler
- All Known Implementing Classes:
BasicAuthHandler,BearerTokenAuthHandler,FormAuthHandler,GenericAuthHandler,OAM11GWebgateAuthHandler,OAMSSOAuthHandler,OAuth2IDCSAuthHandler,OIMSSOAuthHandler
@Concealed
public interface AuthenticationHandler
This is an abstraction over different HTTP authentication methods supported by the content server e.g. Basic authentication, Form authentication, etc.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod httpMethod) Determine if the current handler can handle the given response to the auth schemeintSend the authenticated request to the Content Server
-
Method Details
-
isAuthSupported
boolean isAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod httpMethod) throws ProtocolException Determine if the current handler can handle the given response to the auth scheme- Parameters:
httpClient- client that was used to invoke the pinghttpMethod- method that was used to invoke the ping- Returns:
- true if the handler can support the requests to the given server
- Throws:
ProtocolException
-
getAuthScheme
IdcContext.HttpAuthScheme getAuthScheme()- Returns:
- the authentication scheme associated with this handler
-
sendAuthenticatedRequest
Send the authenticated request to the Content Server- Returns:
- the http status
- Throws:
ProtocolException
-