Interface IConnector

All Known Implementing Classes:
HttpConnector

public interface IConnector
This interface represents a connector that forwards CMS requests to a remote authority. To register a connector, one can add the following to the CMS.cfg:

  Example for KRA type connector.
 ca.connector.KRA.enable=true
 ca.connector.KRA.host=thehost.netscape.com        #Remote host.
 ca.connector.KRA.port=1974                        #Remote host port.
 ca.connector.KRA.nickName="cert-kra"              #Nickname of connector for identity purposes.
 ca.connector.KRA.uri="/kra/connector"             #Uri of the KRA server.
 ca.connector.KRA.id="kra"
 ca.connector.KRA.minHttpConns=1                   #Min connection pool connections.
 ca.connector.KRA.maxHttpConns=10                  #Max connection pool connections.
 
Version:
$Revision$, $Date$
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Sends the request to a remote authority.
    send(String op, String msg)
    Sends the request to a remote authority.
    void
    Starts this connector.
    void
    Stop the connector.
  • Method Details

    • send

      boolean send(Request req) throws EBaseException
      Sends the request to a remote authority.
      Parameters:
      req - Request to be forwarded to remote authority.
      Returns:
      true for success, otherwise false.
      Throws:
      EBaseException - Failure to send request to remote authority.
    • send

      HttpResponse send(String op, String msg) throws EBaseException
      Sends the request to a remote authority.
      Parameters:
      op - operation to determine receiving servlet (multi-uri support)
      msg - Request to be forwarded to remote authority.
      Returns:
      HttpResponse to be parsed by client
      Throws:
      EBaseException - Failure to send request to remote authority.
    • start

      void start()
      Starts this connector.
    • stop

      void stop()
      Stop the connector.