public interface HttpAuthenticationBuilder
HttpAuthentication instances. At the very least, a type, username and password must be provided.| Modifier and Type | Interface and Description |
|---|---|
static interface |
HttpAuthenticationBuilder.HttpNtlmAuthenticationBuilder
Specification of
HttpAuthenticationBuilder for NTLM based authentication. |
| Modifier and Type | Method and Description |
|---|---|
HttpAuthentication |
build()
Creates the
HttpAuthentication as configured. |
HttpAuthenticationBuilder |
password(String password)
Defines the password to use.
|
HttpAuthenticationBuilder |
preemptive(boolean preemptive)
Defines whether or not the authentication should be done from the first request.
|
HttpAuthenticationBuilder |
type(HttpAuthenticationType type)
Defines the
HttpAuthenticationType to use. |
HttpAuthenticationBuilder |
username(String username)
Defines the username to use.
|
HttpAuthenticationBuilder type(HttpAuthenticationType type)
HttpAuthenticationType to use. Must be provided.type - the authentication scheme desiredHttpAuthenticationBuilder username(String username)
username - for the authenticationHttpAuthenticationBuilder password(String password)
password - for the authenticationHttpAuthenticationBuilder preemptive(boolean preemptive)
true, if false
the request will be done awaiting a 401 response with authentication details to start the process.preemptive - whether or not the authentication process should be started at onceHttpAuthentication build()
HttpAuthentication as configured.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.