Interface IConnector


  • 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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean send​(IRequest req)
      Sends the request to a remote authority.
      HttpResponse send​(java.lang.String op, java.lang.String msg)
      Sends the request to a remote authority.
      void start()
      Starts this connector.
      void stop()
      Stop the connector.
    • Method Detail

      • send

        boolean send​(IRequest 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​(java.lang.String op,
                          java.lang.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.