Class ImportKeystoreMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="importKeystore",
          threadSafe=true)
    public class ImportKeystoreMojo
    extends AbstractKeyToolMojo
    To import all entries of a keystore to another keystore. Uses Java KeyStore API directly. Note This operation was not implemented by the keytool before jdk 1.6. See keytool documentation.
    Since:
    1.2
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • srckeystore

        @Parameter
        private java.lang.String srckeystore
        Source keystore name. See options.
        Since:
        1.2
      • destkeystore

        @Parameter
        private java.lang.String destkeystore
        Destination keystore name. See options.
        Since:
        1.2
      • srcstoretype

        @Parameter
        private java.lang.String srcstoretype
        Source keystore type. See options.
        Since:
        1.2
      • deststoretype

        @Parameter
        private java.lang.String deststoretype
        Destination keystore type. See options.
        Since:
        1.2
      • srcstorepass

        @Parameter
        private java.lang.String srcstorepass
        Source keystore password. See options.
        Since:
        1.2
      • deststorepass

        @Parameter
        private java.lang.String deststorepass
        Destination keystore password. See options.
        Since:
        1.2
      • srcprotected

        @Parameter
        private boolean srcprotected
        Source keystore password protected. See options.
        Since:
        1.2
      • srcprovidername

        @Parameter
        private java.lang.String srcprovidername
        Source keystore provider name. See options.
        Since:
        1.2
      • destprovidername

        @Parameter
        private java.lang.String destprovidername
        Destination keystore provider name. See options.
        Since:
        1.2
      • srcalias

        @Parameter
        private java.lang.String srcalias
        Source alias. See options.
        Since:
        1.2
      • destalias

        @Parameter
        private java.lang.String destalias
        Destination alias. See options.
        Since:
        1.2
      • srckeypass

        @Parameter
        private java.lang.String srckeypass
        Source key password. See options.
        Since:
        1.2
      • destkeypass

        @Parameter
        private java.lang.String destkeypass
        Destination key password. See options.
        Since:
        1.2
      • noprompt

        @Parameter
        private boolean noprompt
        Do not prompt. See options.
        Since:
        1.2
      • providerclass

        @Parameter
        private java.lang.String providerclass
        Provider class name. See options.
        Since:
        1.2
      • providerarg

        @Parameter
        private java.lang.String providerarg
        Provider argument. See options.
        Since:
        1.2
      • providerpath

        @Parameter
        private java.lang.String providerpath
        Provider classpath. See options.
        Since:
        1.2
      • skipIfExist

        @Parameter
        private boolean skipIfExist
        If value is true, then will do nothing if keystore already exists.
        Since:
        1.3
    • Constructor Detail

      • ImportKeystoreMojo

        public ImportKeystoreMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException