public class BasicAuthenticationBuilder extends Object
| Constructor and Description |
|---|
BasicAuthenticationBuilder(MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
HttpAuthentication |
build() |
BasicAuthenticationBuilder |
setPassword(String password) |
BasicAuthenticationBuilder |
setPreemptive(boolean preemptive) |
BasicAuthenticationBuilder |
setPreemptiveExpression(String preemptive) |
BasicAuthenticationBuilder |
setUsername(String username) |
public BasicAuthenticationBuilder(MuleContext muleContext)
public BasicAuthenticationBuilder setUsername(String username)
username - basic authentication usernamepublic BasicAuthenticationBuilder setPassword(String password)
password - basic authentication passwordpublic BasicAuthenticationBuilder setPreemptive(boolean preemptive)
preemptive - configures preemptive authentication or not (when true, the authentication
header is sent in the first request).public BasicAuthenticationBuilder setPreemptiveExpression(String preemptive)
preemptive - an expression that resolves to a boolean value that defines if preemptive authentication
should be used or not (when true, the authentication header is sent in the first request).public HttpAuthentication build() throws MuleException
MuleExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.