public class JcaHttpAuthBuilder extends Object
| Constructor and Description |
|---|
JcaHttpAuthBuilder(String username,
char[] password)
Base constructor for digest auth.
|
JcaHttpAuthBuilder(String realm,
String username,
char[] password)
Base constructor for digest auth with an expected realm.
|
| Modifier and Type | Method and Description |
|---|---|
HttpAuth |
build()
Return a HttpAuth implementing digest auth for the user, password, and realm combination.
|
JcaHttpAuthBuilder |
setNonceGenerator(SecureRandom random)
Set the SecureRandom to be used as a source of nonces.
|
JcaHttpAuthBuilder |
setProvider(Provider provider)
Set the provider to use to provide the needed message digests.
|
JcaHttpAuthBuilder |
setProvider(String providerName)
Set the provider to use to provide the needed message digests.
|
public JcaHttpAuthBuilder(String username, char[] password)
username - user id.password - user's password.public JcaHttpAuthBuilder setProvider(Provider provider)
provider - provider to use.public JcaHttpAuthBuilder setProvider(String providerName)
providerName - the name provider to use.public JcaHttpAuthBuilder setNonceGenerator(SecureRandom random)
random - the secure random to use as a nonce generator.public HttpAuth build() throws OperatorCreationException
OperatorCreationException - if there is an issue setting up access to digest operators.Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.