public abstract class UsernamePasswordAuthentication extends Object implements HttpAuthentication
| Constructor and Description |
|---|
UsernamePasswordAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(Event muleEvent,
HttpRequestBuilder builder)
Adds authentication information to the request.
|
abstract HttpRequestAuthentication |
buildRequestAuthentication() |
protected HttpRequestAuthentication |
getBaseRequestAuthentication(HttpAuthenticationType authType) |
boolean |
shouldRetry(Event firstAttemptResponseEvent)
Detects if there was an authentication failure in the response.
|
public void authenticate(Event muleEvent, HttpRequestBuilder builder) throws org.mule.runtime.api.exception.MuleException
HttpAuthenticationauthenticate in interface HttpAuthenticationmuleEvent - The event that is being processed.builder - The builder that is being used to create the HTTP request.org.mule.runtime.api.exception.MuleExceptionpublic boolean shouldRetry(Event firstAttemptResponseEvent) throws org.mule.runtime.api.exception.MuleException
HttpAuthenticationshouldRetry in interface HttpAuthenticationfirstAttemptResponseEvent - The event with the response of the request.org.mule.runtime.api.exception.MuleExceptionpublic abstract HttpRequestAuthentication buildRequestAuthentication()
protected HttpRequestAuthentication getBaseRequestAuthentication(HttpAuthenticationType authType)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.