public class BasicAuthenticator extends Object implements J4pAuthenticator
Constructor and Description |
---|
BasicAuthenticator() |
BasicAuthenticator(boolean pPreemptive)
Constructor for basic authentication
|
Modifier and Type | Method and Description |
---|---|
void |
authenticate(org.apache.http.impl.client.HttpClientBuilder pBuilder,
String pUser,
String pPassword)
Hook called before the HTTP client has been build in order to prepare
for authentication
|
J4pAuthenticator |
preemptive()
Alternative way for specifying preemptiveness
|
public BasicAuthenticator()
public BasicAuthenticator(boolean pPreemptive)
pPreemptive
- whether to always send the authentication headers
(even if not asked for during a handshake)public J4pAuthenticator preemptive()
public void authenticate(org.apache.http.impl.client.HttpClientBuilder pBuilder, String pUser, String pPassword)
authenticate
in interface J4pAuthenticator
pBuilder
- the HTTP client builderpUser
- user to authenticatepPassword
- her passwordCopyright © 2019. All rights reserved.