Constructor and Description |
---|
HttpAuth(String username,
char[] password)
Base constructor for basic auth.
|
HttpAuth(String username,
char[] password,
SecureRandom nonceGenerator,
DigestCalculatorProvider digestCalculatorProvider)
Base constructor for digest auth.
|
HttpAuth(String realm,
String username,
char[] password)
Constructor for basic auth with a specified realm.
|
HttpAuth(String realm,
String username,
char[] password,
SecureRandom nonceGenerator,
DigestCalculatorProvider digestCalculatorProvider)
Constructor for digest auth with a specified realm.
|
Modifier and Type | Method and Description |
---|---|
void |
applyAuth(ESTRequestBuilder reqBldr)
Add the Auth attributes to the passed in request builder.
|
public HttpAuth(String username, char[] password)
username
- user id.password
- user's password.public HttpAuth(String realm, String username, char[] password)
realm
- expected server realm.username
- user id.password
- user's password.public HttpAuth(String username, char[] password, SecureRandom nonceGenerator, DigestCalculatorProvider digestCalculatorProvider)
username
- user id.password
- user's password.nonceGenerator
- random source for generating nonces.digestCalculatorProvider
- provider for digest calculators needed for calculating hashes.public HttpAuth(String realm, String username, char[] password, SecureRandom nonceGenerator, DigestCalculatorProvider digestCalculatorProvider)
realm
- expected server realm.username
- user id.password
- user's password.nonceGenerator
- random source for generating nonces.digestCalculatorProvider
- provider for digest calculators needed for calculating hashes.public void applyAuth(ESTRequestBuilder reqBldr)
ESTAuth
Copyright © 2021 BouncyCastle.org. All rights reserved.