public interface IBasicAuthCredentialsObserver extends IObserver
CommonAuthFlowsConfigurator#supportBasicAuthUsing(com.sap.smp.client.httpc.authflows.UsernamePasswordProvider)
. Adding an object of this type to a manager which is not configured for basic
auth in the aforementioned way will cause that the credential observer is not going to be invoked.Modifier and Type | Method and Description |
---|---|
void |
observeCredentials(java.lang.String managerName,
java.lang.String conversationName,
java.net.URL requestUrl,
UsernamePasswordToken credentials)
Invoked right after the specified credentials have been appended to an HTTP request before sending.
|
void observeCredentials(java.lang.String managerName, java.lang.String conversationName, java.net.URL requestUrl, UsernamePasswordToken credentials) throws java.lang.Exception
managerName
- the name of the manager, originating from HttpConversationManager#getName()
conversationName
- the name of the conversation, originating from IHttpConversation#getName()
requestUrl
- the URL to which the request is sent, must be non-nullcredentials
- the credentials, must be non-nulljava.lang.Exception
- in case of any errors occured during observation