Package com.inrupt.client.auth
Class Challenge
java.lang.Object
com.inrupt.client.auth.Challenge
Part of the HTTP Challenge and Response authentication framework, this class represents a
challenge object as represented in a WWW-Authenticate Response Header.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetParameter(String parameter) Get the value of the given parameter.Get all the parameters for this challenge.Get the authentication scheme for this challenge.inthashCode()static ChallengeCreate a new Challenge object with a specific authentication scheme and no parameters.static ChallengeCreate a new Challenge object with a specific authentication scheme and parameters.toString()
-
Method Details
-
of
Create a new Challenge object with a specific authentication scheme and no parameters.- Parameters:
scheme- the authentication scheme- Returns:
- the challenge
-
of
Create a new Challenge object with a specific authentication scheme and parameters.- Parameters:
scheme- the authentication schemeparameters- the authentication parameters- Returns:
- the challenge
-
getScheme
Get the authentication scheme for this challenge.- Returns:
- the scheme name
-
getParameter
Get the value of the given parameter.- Parameters:
parameter- the parameter name- Returns:
- the parameter value, may be
null
-
getParameters
Get all the parameters for this challenge.- Returns:
- the complete collection of parameters
-
toString
-
equals
-
hashCode
public int hashCode()
-