Class AbstractEncryptFileMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
au.net.causal.maven.plugins.jgitcrypt.AbstractKeyBasedMojo
au.net.causal.maven.plugins.jgitcrypt.AbstractEncryptFileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
EncryptFromClipboardMojo, EncryptMojo, EncryptToClipboardMojo

public abstract class AbstractEncryptFileMojo extends AbstractKeyBasedMojo
Encrypt a single file, subclasses define source and target as streams.
  • Constructor Details

    • AbstractEncryptFileMojo

      public AbstractEncryptFileMojo()
  • Method Details

    • sourceInputStream

      protected abstract InputStream sourceInputStream() throws IOException
      Stream of data to encrypt.
      Throws:
      IOException
    • targetOutputStream

      protected abstract OutputStream targetOutputStream() throws IOException
      Stream to write encrypted data to.
      Throws:
      IOException
    • execute

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