Class ExportCertificateMojo

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

    @Mojo(name="exportCertificate",
          threadSafe=true)
    public class ExportCertificateMojo
    extends AbstractKeyToolMojo
    To export a certificate from a keystore using Java KeyStore API. See keytool documentation.
    Since:
    1.2
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • keystore

        @Parameter(defaultValue="${project.build.directory}/keystore",
                   required=true)
        private java.io.File keystore
      • storetype

        @Parameter
        private java.lang.String storetype
      • storepass

        @Parameter
        private java.lang.String storepass
      • alias

        @Parameter(required=true)
        private java.lang.String alias
      • file

        @Parameter(required=true)
        private java.lang.String file
        Output file name.
        Since:
        1.2
    • Constructor Detail

      • ExportCertificateMojo

        public ExportCertificateMojo()
    • Method Detail

      • execute

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