Package org.apache.hc.client5.http.auth
Class AuthChallenge
- java.lang.Object
-
- org.apache.hc.client5.http.auth.AuthChallenge
-
@Contract(threading=IMMUTABLE) public final class AuthChallenge extends java.lang.Object
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
Fields Modifier and Type Field Description private ChallengeType
challengeType
private java.util.List<org.apache.hc.core5.http.NameValuePair>
params
private java.lang.String
schemeName
private java.lang.String
value
-
Constructor Summary
Constructors Constructor Description AuthChallenge(ChallengeType challengeType, java.lang.String schemeName, java.lang.String value, java.util.List<? extends org.apache.hc.core5.http.NameValuePair> params)
AuthChallenge(ChallengeType challengeType, java.lang.String schemeName, org.apache.hc.core5.http.NameValuePair... params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChallengeType
getChallengeType()
java.util.List<org.apache.hc.core5.http.NameValuePair>
getParams()
java.lang.String
getSchemeName()
java.lang.String
getValue()
java.lang.String
toString()
-
-
-
Field Detail
-
challengeType
private final ChallengeType challengeType
-
schemeName
private final java.lang.String schemeName
-
value
private final java.lang.String value
-
params
private final java.util.List<org.apache.hc.core5.http.NameValuePair> params
-
-
Constructor Detail
-
AuthChallenge
public AuthChallenge(ChallengeType challengeType, java.lang.String schemeName, java.lang.String value, java.util.List<? extends org.apache.hc.core5.http.NameValuePair> params)
-
AuthChallenge
public AuthChallenge(ChallengeType challengeType, java.lang.String schemeName, org.apache.hc.core5.http.NameValuePair... params)
-
-
Method Detail
-
getChallengeType
public ChallengeType getChallengeType()
-
getSchemeName
public java.lang.String getSchemeName()
-
getValue
public java.lang.String getValue()
-
getParams
public java.util.List<org.apache.hc.core5.http.NameValuePair> getParams()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-