Class DefaultKeyToolCommandLineBuilder

    • Field Detail

      • unsupportedRequestTypes

        final java.util.Set<java.lang.Class<? extends KeyToolRequest>> unsupportedRequestTypes
        Unsupported request types.
        Since:
        1.3
    • Constructor Detail

      • DefaultKeyToolCommandLineBuilder

        public DefaultKeyToolCommandLineBuilder()
    • Method Detail

      • supportRequestType

        public <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 KeyToolCommandLineBuilder.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.
      • build

        protected void build​(KeyToolChangeAliasRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolChangeKeyPasswordRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolChangeStorePasswordRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolDeleteRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolExportCertificateRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolGenerateCertificateRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolGenerateCertificateRequestRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolGenerateKeyPairRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolGenerateSecretKeyRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolImportCertificateRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolImportKeystoreRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolListRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolPrintCertificateRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolPrintCertificateRequestRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare
      • build

        protected void build​(KeyToolPrintCRLFileRequest request,
                             org.apache.maven.shared.utils.cli.Commandline cli)
        Fill the commandline client for the given request.
        Parameters:
        request - the keytool request to consume
        cli - the commandline client to prepare