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|
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
conversationName- the name of the conversation, originating from
requestUrl- the URL to which the request is sent, must be non-null
credentials- the credentials, must be non-null
java.lang.Exception- in case of any errors occured during observation