Top Description Fields Constructors Methods
org.apache.hc.client5.http.auth

public final Class AuthChallenge

extends Object
Class Inheritance
Annotations
@Contract
threading:IMMUTABLE
Imports
java.util.ArrayList, .Arrays, .Collections, .List, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.NameValuePair, org.apache.hc.core5.util.Args

This class represents an authentication challenge consisting of a auth scheme and either a single parameter or a list of name / value pairs.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final ChallengeType
private final List<NameValuePair>
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
AuthChallenge(final ChallengeType challengeType, final String schemeName, final String value, final List<? extends NameValuePair> params)

public
AuthChallenge(final ChallengeType challengeType, final String schemeName, final NameValuePair... params)

Method Summary

Modifier and TypeMethod and Description
public ChallengeType
public List<NameValuePair>
public String
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

challengeTypeback to summary
private final ChallengeType challengeType
paramsback to summary
private final List<NameValuePair> params
schemeNameback to summary
private final String schemeName
valueback to summary
private final String value

Constructor Detail

AuthChallengeback to summary
public AuthChallenge(final ChallengeType challengeType, final String schemeName, final String value, final List<? extends NameValuePair> params)
AuthChallengeback to summary
public AuthChallenge(final ChallengeType challengeType, final String schemeName, final NameValuePair... params)

Method Detail

getChallengeTypeback to summary
public ChallengeType getChallengeType()
getParamsback to summary
public List<NameValuePair> getParams()
getSchemeNameback to summary
public String getSchemeName()
getValueback to summary
public String getValue()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override