Class HttpBearerAuth

  • All Implemented Interfaces:
    Authentication

    @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-07-11T22:46:03.646077Z[Etc/UTC]")
    public class HttpBearerAuth
    extends java.lang.Object
    implements Authentication
    • 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, java.lang.String payload, java.lang.String method, java.net.URI uri)
      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,
                                  java.lang.String payload,
                                  java.lang.String method,
                                  java.net.URI uri)
                           throws ApiException
        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
        payload - HTTP request body
        method - HTTP method
        uri - URI
        Throws:
        ApiException - if failed to update the parameters