| Modifier and Type | Field and Description |
|---|---|
| private static final DigestAlgorithmIdentifierFinder | |
| private final DigestCalculatorProvider | |
| private final SecureRandom | |
| private final char[] | |
| private final String | |
| private final String | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | HttpAuth(String
user id. username, char[] user's password. password, SecureRandom random source for generating nonces. nonceGenerator, DigestCalculatorProvider provider for digest calculators needed for calculating hashes. digestCalculatorProvider)Base constructor for digest auth. |
| public | HttpAuth(String
expected server realm. realm, String user id. username, char[] user's password. password, SecureRandom random source for generating nonces. nonceGenerator, DigestCalculatorProvider provider for digest calculators needed for calculating hashes. digestCalculatorProvider)Constructor for digest auth with a specified realm. |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyAuth(final ESTRequestBuilder
the builder for the request needing the Auth attributes. reqBldr)Implements org. Add the Auth attributes to the passed in request builder. |
| private ESTResponse | |
| private DigestCalculator | |
| private AlgorithmIdentifier | |
| private String | |
| private void | |
| private void |
| digestAlgorithmIdentifierFinder | back to summary |
|---|---|
| private static final DigestAlgorithmIdentifierFinder digestAlgorithmIdentifierFinder | |
| digestCalculatorProvider | back to summary |
|---|---|
| private final DigestCalculatorProvider digestCalculatorProvider | |
| nonceGenerator | back to summary |
|---|---|
| private final SecureRandom nonceGenerator | |
| password | back to summary |
|---|---|
| private final char[] password | |
| realm | back to summary |
|---|---|
| private final String realm | |
| username | back to summary |
|---|---|
| private final String username | |
| validParts | back to summary |
|---|---|
| private static final Set<String> validParts | |
| HttpAuth | back to summary |
|---|---|
| public HttpAuth(String username, char[] password) Base constructor for basic auth.
| |
| HttpAuth | back to summary |
|---|---|
| public HttpAuth(String realm, String username, char[] password) Constructor for basic auth with a specified realm. | |
| HttpAuth | back to summary |
|---|---|
| public HttpAuth(String username, char[] password, SecureRandom nonceGenerator, DigestCalculatorProvider digestCalculatorProvider) Base constructor for digest auth. The realm will be set by
| |
| HttpAuth | back to summary |
|---|---|
| public HttpAuth(String realm, String username, char[] password, SecureRandom nonceGenerator, DigestCalculatorProvider digestCalculatorProvider) Constructor for digest auth with a specified realm.
| |
| applyAuth | back to summary |
|---|---|
| public void applyAuth(final ESTRequestBuilder reqBldr) Implements org. Doc from org. Add the Auth attributes to the passed in request builder.
| |
| doDigestFunction | back to summary |
|---|---|
| private ESTResponse doDigestFunction(ESTResponse res) throws IOException | |
| getDigestCalculator | back to summary |
|---|---|
| private DigestCalculator getDigestCalculator(String algorithm, AlgorithmIdentifier digestAlg) throws IOException | |
| lookupDigest | back to summary |
|---|---|
| private AlgorithmIdentifier lookupDigest(String algorithm) | |
| makeNonce | back to summary |
|---|---|
| private String makeNonce(int len) | |
| update | back to summary |
|---|---|
| private void update(OutputStream dOut, char[] value) throws IOException | |
| update | back to summary |
|---|---|
| private void update(OutputStream dOut, String value) throws IOException | |