public class JcaHttpAuthBuilder
extends java.lang.Object
Constructor and Description |
---|
JcaHttpAuthBuilder(java.lang.String username,
char[] password)
Base constructor for digest auth.
|
JcaHttpAuthBuilder(java.lang.String realm,
java.lang.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(java.security.SecureRandom random)
Set the SecureRandom to be used as a source of nonces.
|
JcaHttpAuthBuilder |
setProvider(java.security.Provider provider)
Set the provider to use to provide the needed message digests.
|
JcaHttpAuthBuilder |
setProvider(java.lang.String providerName)
Set the provider to use to provide the needed message digests.
|
public JcaHttpAuthBuilder(java.lang.String username, char[] password)
username
- user id.password
- user's password.public JcaHttpAuthBuilder(java.lang.String realm, java.lang.String username, char[] password)
realm
- expected server realm.username
- user id.password
- user's password.public JcaHttpAuthBuilder setProvider(java.security.Provider provider)
provider
- provider to use.public JcaHttpAuthBuilder setProvider(java.lang.String providerName)
providerName
- the name provider to use.public JcaHttpAuthBuilder setNonceGenerator(java.security.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.