Skip navigation links
A C D E F G H I N O P Q R S T U V W 

A

algorithm(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the algorithm directive, which must be the same as the algorithm directive of the challenge.

C

canRespond() - Method in class com.albroco.barebonesdigest.DigestAuthentication
Returns true if a response can be generated to any of the challenges.
challenge(DigestChallenge) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the values of the realm, nonce, opaque, and algorithm directives and the supported quality of protection types based on a challenge.
challengeOrdering(Comparator<? super DigestChallenge>) - Method in class com.albroco.barebonesdigest.DigestAuthentication
Sets the challenge ordering, which will determine which challenge that will be used if there are several.
ChallengeParseException - Exception in com.albroco.barebonesdigest
Indicates that a WWW-Authenticate header or challenge could not be parsed because it is malformed.
ChallengeParseException(String) - Constructor for exception com.albroco.barebonesdigest.ChallengeParseException
Constructs a new ChallengeParseException with its stack trace and detail message filled in.
ChallengeParseException(String, Throwable) - Constructor for exception com.albroco.barebonesdigest.ChallengeParseException
Constructs a new instance of this class with detail message and cause filled in.
ChallengeParseException(Throwable) - Constructor for exception com.albroco.barebonesdigest.ChallengeParseException
Constructs a new instance of this class with its detail cause filled in.
clientNonce(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the cnonce directive, which is a random string generated by the client that will be included in the challenge response hash.
com.albroco.barebonesdigest - package com.albroco.barebonesdigest
An implementation of the HTTP Digest authentication scheme for Android.

D

DEFAULT_CHALLENGE_COMPARATOR - Static variable in class com.albroco.barebonesdigest.DigestAuthentication
Default comparator used when comparing which challenge to use when there is more than one to choose from.
DigestAuthentication - Class in com.albroco.barebonesdigest
Utility class with high-level methods for parsing challenges and generating responses.
DigestChallenge - Class in com.albroco.barebonesdigest
Represents a HTTP digest challenge, as sent from the server to the client in a WWW-Authenticate HTTP header.
DigestChallenge.QualityOfProtection - Enum in com.albroco.barebonesdigest
Enumeration of the various types of quality of protection.
DigestChallengeResponse - Class in com.albroco.barebonesdigest
Represents a HTTP digest challenge response, as sent from the client to the server in a Authorization header.
DigestChallengeResponse() - Constructor for class com.albroco.barebonesdigest.DigestChallengeResponse
Creates an empty challenge response.
digestUri(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the digest-uri directive, which must be exactly the same as the Request-URI of the Request-Line of the HTTP request.

E

entityBody(byte[]) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the entity-body of the request, which is only used for the "auth-int" quality of protection.
entityBodyDigest(byte[]) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the digest of the entity-body of the request, which is only used for the "auth-int" quality of protection.
extractChallenges(HttpURLConnection) - Static method in class com.albroco.barebonesdigest.WwwAuthenticateHeader
Extracts challenges from an HTTP response.
extractChallenges(Map<String, T>) - Static method in class com.albroco.barebonesdigest.WwwAuthenticateHeader
Extracts challenges from a map of HTTP headers.
extractChallenges(Iterable<String>) - Static method in class com.albroco.barebonesdigest.WwwAuthenticateHeader
Extracts challenges from a set of WWW-Authenticate HTTP headers.
extractChallenges(String) - Static method in class com.albroco.barebonesdigest.WwwAuthenticateHeader
Extracts challenges from a WWW-Authenticate header.

F

firstRequestClientNonce(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the value of client nonce used in the first request.
fromChallenges(Iterable<String>) - Static method in class com.albroco.barebonesdigest.DigestAuthentication
Creates an authentication from a number of challenges.
fromDigestChallenge(DigestChallenge) - Static method in class com.albroco.barebonesdigest.DigestAuthentication
Creates an authentication from a parsed Digest challenge.
fromDigestChallenges(Iterable<? extends DigestChallenge>) - Static method in class com.albroco.barebonesdigest.DigestAuthentication
Creates an authentication from a number of parsed Digest challenges.
fromResponse(HttpURLConnection) - Static method in class com.albroco.barebonesdigest.DigestAuthentication
Creates an authentication by reading response headers from an HttpURLConnection object.
fromResponseHeaders(Map<String, T>) - Static method in class com.albroco.barebonesdigest.DigestAuthentication
Creates an authentication from a map of HTTP response headers.
fromWwwAuthenticateHeader(String) - Static method in class com.albroco.barebonesdigest.DigestAuthentication
Creates an authentication from a single WWW-Authenticate header.
fromWwwAuthenticateHeaders(Iterable<String>) - Static method in class com.albroco.barebonesdigest.DigestAuthentication
Creates an authentication from a number of WWW-Authenticate headers.

G

getAlgorithm() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the value of the algorithm directive if present.
getAlgorithm() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the value of the algorithm directive.
getAuthorizationForRequest(String, String) - Method in class com.albroco.barebonesdigest.DigestAuthentication
Returns the value of Authorization header that can be used in a particular request.
getAuthorizationForRequest(String, String, byte[]) - Method in class com.albroco.barebonesdigest.DigestAuthentication
Returns the value of Authorization header that can be used in a particular request.
getChallengeResponse() - Method in class com.albroco.barebonesdigest.DigestAuthentication
Picks a challenge among the available challenges and generates a response to it.
getClientNonce() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the value of the cnonce directive.
getDigestUri() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the value of the digest-uri directive.
getDomain() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the unquoted version of the optional domain directive, or null if the domain is not set.
getEntityBodyDigest() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the digest of the entity-body.
getFirstRequestClientNonce() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the value of client nonce used in the first request.
getHeaderValue() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the credentials, that is, the string to set in the Authorization HTTP request header.
getNonce() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the unquoted version of the mandatory nonce directive.
getNonce() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the unquoted value of the nonce directive
getNonceCount() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the integer representation of the nonce-count directive.
getOpaque() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the unquoted version of the opaque directive, or null if the directive is not present.
getOpaque() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the the unquoted value of the opaque directive, or null.
getPassword() - Method in class com.albroco.barebonesdigest.DigestAuthentication
Returns the password to use for authentication.
getPassword() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the password to use for authentication.
getQop() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the "quality of protection" that will be used for the response.
getQopValue() - Method in enum com.albroco.barebonesdigest.DigestChallenge.QualityOfProtection
Returns the "qop-value" of the quality of protection, that is, the short name that appears in digest messages, such as "auth" or "auth-int".
getQuotedDomain() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the quoted version of the optional domain directive, exactly as it appears in the challenge, or null if the domain is not set.
getQuotedNonce() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the quoted version of the mandatory nonce directive, exactly as it appears in the challenge.
getQuotedNonce() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the quoted value of the nonce directive.
getQuotedOpaque() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the quoted version of the opaque directive exactly as it appears in the challenge, or null if the directive is not present.
getQuotedOpaque() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the the quoted value of the opaque directive, or null.
getQuotedRealm() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the quoted version of the mandatory realm directive, exactly as it appears in the challenge.
getQuotedRealm() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the quoted value of the realm directive.
getRealm() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the unquoted version of the mandatory realm directive.
getRealm() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the unquoted value of the realm directive.
getRequestMethod() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the HTTP method of the request.
getSupportedQopTypes() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns the types of "quality of protection" listed in the challenge as supported by the server.
getSupportedQopTypes() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the type of "quality of protection" that can be used when responding to the request.
getUsername() - Method in class com.albroco.barebonesdigest.DigestAuthentication
Returns the username to use for authentication.
getUsername() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns the username to use for authentication.

H

HTTP_HEADER_AUTHORIZATION - Static variable in class com.albroco.barebonesdigest.DigestChallengeResponse
The name of the HTTP request header ("Authorization").
HTTP_HEADER_WWW_AUTHENTICATE - Static variable in class com.albroco.barebonesdigest.WwwAuthenticateHeader
Name of the HTTP response header WWW-Authenticate.

I

incrementNonceCount() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Increments the value of the nonce-count by one.
InsufficientInformationException - Exception in com.albroco.barebonesdigest
Indicates that not enough information has been provided to perform the requested operation.
InsufficientInformationException(String) - Constructor for exception com.albroco.barebonesdigest.InsufficientInformationException
Constructs a new InsufficientInformationException with its stack trace and detail message filled in.
InsufficientInformationException(String, Throwable) - Constructor for exception com.albroco.barebonesdigest.InsufficientInformationException
Constructs a new instance of this class with detail message and cause filled in.
InsufficientInformationException(Throwable) - Constructor for exception com.albroco.barebonesdigest.InsufficientInformationException
Constructs a new instance of this class with its detail cause filled in.
isAlgorithmSupported(String) - Static method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns true if a given digest algorithm is supported.
isChallengeSupported(DigestChallenge) - Static method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns true if a given challenge is supported and a response to it can be generated (given that all other required values are supplied).
isDigestChallenge(String) - Static method in class com.albroco.barebonesdigest.DigestChallenge
Returns true if a string represents a HTTP Digest challenge (which may or may not be valid).
isEntityBodyDigestRequired() - Method in class com.albroco.barebonesdigest.DigestAuthentication
Returns true if the digest of the entity-body is required to generate a response to the preferred challenge.
isEntityBodyDigestRequired() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Returns true if the digest of the entity-body is required to generate an authorization header for this response.
isStale() - Method in class com.albroco.barebonesdigest.DigestChallenge
Returns a boolean representation of the stale directive.

N

nonce(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the nonce directive, which must be the same as the nonce directive of the challenge.
nonceCount(int) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the integer representation of the nonce-count directive, which indicates how many times this a challenge response with this nonce has been used.

O

opaque(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the opaque directive, which must be the same as the opaque directive of the challenge.

P

parse(String) - Static method in class com.albroco.barebonesdigest.DigestChallenge
Parses a HTTP Digest challenge.
password(String) - Method in class com.albroco.barebonesdigest.DigestAuthentication
Sets the password to use for authentication.
password(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the password to use for authentication.

Q

quotedNonce(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the nonce directive, which must be the same as the nonce directive of the challenge.
quotedOpaque(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the opaque directive, which must be the same as the opaque directive of the challenge.
quotedRealm(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the realm directive, which must be the same as the realm directive of the challenge.

R

randomizeClientNonce() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the cnonce directive to a random value.
realm(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the realm directive, which must be the same as the realm directive of the challenge.
requestMethod(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the HTTP method of the request (GET, POST, etc).
resetNonceCount() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the value of the nonce-count to one.
responseTo(DigestChallenge) - Static method in class com.albroco.barebonesdigest.DigestChallengeResponse
Creates a digest challenge response, setting the values of the realm, nonce, opaque, and algorithm directives and the supported quality of protection types based on a challenge.

S

supportedQopTypes(Set<DigestChallenge.QualityOfProtection>) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the type of "quality of protection" that can be used when responding to the request.

T

toString() - Method in class com.albroco.barebonesdigest.DigestAuthentication
 
toString() - Method in class com.albroco.barebonesdigest.DigestChallenge
 
toString() - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
 

U

username(String) - Method in class com.albroco.barebonesdigest.DigestAuthentication
Sets the username to use for authentication.
username(String) - Method in class com.albroco.barebonesdigest.DigestChallengeResponse
Sets the username to use for authentication.

V

valueOf(String) - Static method in enum com.albroco.barebonesdigest.DigestChallenge.QualityOfProtection
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.albroco.barebonesdigest.DigestChallenge.QualityOfProtection
Returns an array containing the constants of this enum type, in the order they are declared.

W

WwwAuthenticateHeader - Class in com.albroco.barebonesdigest
Class for extracting challenges from WWW-Authenticate headers.
A C D E F G H I N O P Q R S T U V W 
Skip navigation links