Class 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)  
    • Field Detail

      • 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

      • 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 class java.lang.Object