Class OpenIdConnectHttpConnection

java.lang.Object
com.aquima.web.communication.OpenIdConnectHttpConnection
All Implemented Interfaces:
com.aquima.interactions.foundation.connectivity.IConnection, com.aquima.interactions.foundation.connectivity.IHttpConnection

public class OpenIdConnectHttpConnection extends Object
Http connection implementation that uses apache commons classes to provide an OpenID Connect connection.
Since:
11.4
Author:
Petru Galanton
  • Field Details Link icon

    • name Link icon

      protected final String name
    • url Link icon

      protected String url
    • timeout Link icon

      protected int timeout
    • domain Link icon

      protected String domain
    • username Link icon

      protected String username
    • password Link icon

      protected String password
  • Constructor Details Link icon

    • OpenIdConnectHttpConnection Link icon

      public OpenIdConnectHttpConnection(String name, String url)
  • Method Details Link icon

    • fill Link icon

      public com.aquima.interactions.foundation.connectivity.IHttpConnectionFiller fill()
    • createHttpClient Link icon

      protected org.apache.http.client.HttpClient createHttpClient()
    • setTimeout Link icon

      public void setTimeout(int timeout)
      Sets the read timeout to a specified timeout, in milliseconds. A non-zero value specifies the timeout when reading from Input stream when a connection is established to a resource. If the timeout expires before there is data available for read, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout. Some non-standard implementation of this method ignores the specified timeout.
      Parameters:
      timeout - the timeout
    • setUserName Link icon

      public void setUserName(String username)
      A user identifier used for authentication purposes. When no username is set, this implementation will not attempt to authenticate.
      Parameters:
      username - the username
    • setPassword Link icon

      public void setPassword(String password)
      A secret to prove the identity of the supplied user. Not used when no username is provided.
      Parameters:
      password - the password
    • setDomain Link icon

      public void setDomain(String domain)
      An authentication domain (not used when no username is provided).
      Parameters:
      domain - the domain
    • getName Link icon

      public String getName()
      Specified by:
      getName in interface com.aquima.interactions.foundation.connectivity.IConnection
    • getType Link icon

      public com.aquima.interactions.foundation.connectivity.ConnectionType getType()
      Specified by:
      getType in interface com.aquima.interactions.foundation.connectivity.IConnection
    • getUrl Link icon

      public String getUrl()
      Specified by:
      getUrl in interface com.aquima.interactions.foundation.connectivity.IHttpConnection
    • invoke Link icon

      public void invoke(com.aquima.interactions.foundation.connectivity.IHttpRequest request, com.aquima.interactions.foundation.connectivity.IHttpResponseHandler handler) throws IOException
      Specified by:
      invoke in interface com.aquima.interactions.foundation.connectivity.IHttpConnection
      Throws:
      IOException
    • fillUrl Link icon

      protected void fillUrl(String url)
    • fillTimeout Link icon

      protected void fillTimeout(int timeout)
    • fillDomain Link icon

      protected void fillDomain(String domain)
    • fillUsername Link icon

      protected void fillUsername(String username)
    • fillPassword Link icon

      protected void fillPassword(String password)