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
Encrypt a single file, subclasses define source and target as streams.
-
Field Summary
Fields inherited from class au.net.causal.maven.plugins.jgitcrypt.AbstractKeyBasedMojo
mavenSession, projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected abstract InputStreamStream of data to encrypt.protected abstract OutputStreamStream to write encrypted data to.Methods inherited from class au.net.causal.maven.plugins.jgitcrypt.AbstractKeyBasedMojo
getGitcryptKeyLocationDescription, loadGitcryptKeyMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractEncryptFileMojo
public AbstractEncryptFileMojo()
-
-
Method Details
-
sourceInputStream
Stream of data to encrypt.- Throws:
IOException
-
targetOutputStream
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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-