| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private JcaDigestCalculatorProviderBuilder | |
| private SecureRandom | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | JcaHttpAuthBuilder(String
user id. username, char[] user's password. password)Base constructor for digest auth. |
| public | JcaHttpAuthBuilder(String
expected server realm. realm, String user id. username, char[] user's password. password)Base constructor for digest auth with an expected realm. |
| Modifier and Type | Method and Description |
|---|---|
| public HttpAuth | Returns: a HttpAuth object.Return a HttpAuth implementing digest auth for the user, password, and realm combination. |
| public JcaHttpAuthBuilder | Returns: this builder instance.the secure random to use as a nonce generator. random)Set the SecureRandom to be used as a source of nonces. |
| public JcaHttpAuthBuilder | Returns: this builder instance.provider to use. provider)Set the provider to use to provide the needed message digests. |
| public JcaHttpAuthBuilder | Returns: this builder instance.the name provider to use. providerName)Set the provider to use to provide the needed message digests. |
| password | back to summary |
|---|---|
| private final char[] password | |
| providerBuilder | back to summary |
|---|---|
| private JcaDigestCalculatorProviderBuilder providerBuilder | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| realm | back to summary |
|---|---|
| private final String realm | |
| username | back to summary |
|---|---|
| private final String username | |
| JcaHttpAuthBuilder | back to summary |
|---|---|
| public JcaHttpAuthBuilder(String username, char[] password) Base constructor for digest auth.
| |
| JcaHttpAuthBuilder | back to summary |
|---|---|
| public JcaHttpAuthBuilder(String realm, String username, char[] password) Base constructor for digest auth with an expected realm. | |
| build | back to summary |
|---|---|
| public HttpAuth build() throws OperatorCreationException Return a HttpAuth implementing digest auth for the user, password, and realm combination.
| |
| setNonceGenerator | back to summary |
|---|---|
| public JcaHttpAuthBuilder setNonceGenerator(SecureRandom random) Set the SecureRandom to be used as a source of nonces.
| |
| setProvider | back to summary |
|---|---|
| public JcaHttpAuthBuilder setProvider(Provider provider) Set the provider to use to provide the needed message digests.
| |
| setProvider | back to summary |
|---|---|
| public JcaHttpAuthBuilder setProvider(String providerName) Set the provider to use to provide the needed message digests.
| |