Class AbstractDecryptFileMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
au.net.causal.maven.plugins.jgitcrypt.AbstractKeyBasedMojo
au.net.causal.maven.plugins.jgitcrypt.AbstractDecryptFileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DecryptMojo, DecryptToClipboardMojo

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

    • AbstractDecryptFileMojo

      public AbstractDecryptFileMojo()
  • Method Details

    • sourceInputStream

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

      protected abstract OutputStream targetOutputStream() throws IOException
      Stream to write decrypted 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