Interface KeyToolCommandLineBuilder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ROLE
      Plexus role name.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.maven.shared.utils.cli.Commandline build​(KeyToolRequest request)
      Build the commandline given the incoming keytool request.
      void checkRequiredState()
      Checks that builder is ready to produce commandline from incoming request.
      void checkSupportedRequest​(KeyToolRequest request)
      Checks that builder can build the given type of request.
      void setKeyToolFile​(java.lang.String keyToolFile)
      Sets the keytool executable location.
      void setLogger​(org.codehaus.plexus.logging.Logger logger)
      Sets the logger used by the builder.
      <R extends KeyToolRequest>
      boolean
      supportRequestType​(java.lang.Class<R> requestType)
      Test if given request type is supported by the underlined keytool implementation.
    • Field Detail

      • ROLE

        static final java.lang.String ROLE
        Plexus role name.
    • Method Detail

      • supportRequestType

        <R extends KeyToolRequest> boolean supportRequestType​(java.lang.Class<R> requestType)
        Test if given request type is supported by the underlined keytool implementation.

        Note: a request of a none supported type will then thrown a UnsupportedKeyToolRequestException in method build(KeyToolRequest)

        Type Parameters:
        R - type of request to test
        Parameters:
        requestType - type of request to test
        Returns:
        true if can create a such request type, false otherwise.
        Since:
        1.3
      • setLogger

        void setLogger​(org.codehaus.plexus.logging.Logger logger)
        Sets the logger used by the builder.
        Parameters:
        logger - logger to use in this builder
      • setKeyToolFile

        void setKeyToolFile​(java.lang.String keyToolFile)
        Sets the keytool executable location.
        Parameters:
        keyToolFile - keytool executable location to use in this builder
      • checkRequiredState

        void checkRequiredState()
        Checks that builder is ready to produce commandline from incoming request.

        Says a logger is set and a keytool executable location is setted.