Class HttpBearerAuth

    • Constructor Summary

      Constructors 
      Constructor Description
      HttpBearerAuth​(java.lang.String scheme)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void applyToParams​(java.util.List<Pair> queryParams, java.util.Map<java.lang.String,​java.lang.String> headerParams, java.util.Map<java.lang.String,​java.lang.String> cookieParams)
      Apply authentication settings to header and query params.
      java.lang.String getBearerToken()
      Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
      void setBearerToken​(java.lang.String bearerToken)
      Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpBearerAuth

        public HttpBearerAuth​(java.lang.String scheme)
    • Method Detail

      • getBearerToken

        public java.lang.String getBearerToken()
        Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
        Returns:
        The bearer token
      • setBearerToken

        public void setBearerToken​(java.lang.String bearerToken)
        Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
        Parameters:
        bearerToken - The bearer token to send in the Authorization header
      • applyToParams

        public void applyToParams​(java.util.List<Pair> queryParams,
                                  java.util.Map<java.lang.String,​java.lang.String> headerParams,
                                  java.util.Map<java.lang.String,​java.lang.String> cookieParams)
        Description copied from interface: Authentication
        Apply authentication settings to header and query params.
        Specified by:
        applyToParams in interface Authentication
        Parameters:
        queryParams - List of query parameters
        headerParams - Map of header parameters
        cookieParams - Map of cookie parameters