public abstract class UsernamePasswordAuthentication extends Object implements HttpAuthentication
| Constructor and Description |
|---|
UsernamePasswordAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(HttpRequestBuilder builder)
Adds authentication information to the request.
|
abstract HttpRequestAuthentication |
buildRequestAuthentication() |
protected HttpRequestAuthentication |
getBaseRequestAuthentication(HttpAuthenticationType authType) |
boolean |
shouldRetry(org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> firstAttemptResult)
Detects if there was an authentication failure in the response.
|
public void authenticate(HttpRequestBuilder builder) throws org.mule.runtime.api.exception.MuleException
HttpAuthenticationauthenticate in interface HttpAuthenticationbuilder - The builder that is being used to create the HTTP request.org.mule.runtime.api.exception.MuleExceptionpublic boolean shouldRetry(org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> firstAttemptResult) throws org.mule.runtime.api.exception.MuleException
HttpAuthenticationshouldRetry in interface HttpAuthenticationfirstAttemptResult - The result with the response of the request.org.mule.runtime.api.exception.MuleExceptionpublic abstract HttpRequestAuthentication buildRequestAuthentication()
protected HttpRequestAuthentication getBaseRequestAuthentication(HttpAuthenticationType authType)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.