Class HttpAuthorizer

    • Constructor Detail

      • HttpAuthorizer

        public HttpAuthorizer​(java.lang.String endPoint)
        Deprecated.
        Creates a new authorizer.
        Parameters:
        endPoint - The endpoint to be called when authenticating.
      • HttpAuthorizer

        public HttpAuthorizer​(java.lang.String endPoint,
                              ConnectionFactory connectionFactory)
        Deprecated.
        Creates a new authorizer.
        Parameters:
        endPoint - The endpoint to be called when authenticating.
        connectionFactory - a custom connection factory to be used for building the connection
    • Method Detail

      • setHeaders

        public void setHeaders​(java.util.Map<java.lang.String,​java.lang.String> headers)
        Set additional headers to be sent as part of the request.
        Parameters:
        headers - A map of headers
      • isSSL

        public java.lang.Boolean isSSL()
        Identifies if the HTTP request will be sent over HTTPS.
        Returns:
        true if the endpoint protocol is 'https'
      • performAuthRequest

        protected java.lang.String performAuthRequest()
        Performs an HTTP request to the endpoint provided on construction.

        The request shall include the headers and parameters provided by the connectionFactory.

        Child classes must provide the connection parameters to the connectionFactory before calling this method.

        Returns:
        HTTP request response body