class EncryptMojo extends AbstractFileJasyptMojo {
    private static final Logger LOGGER = LoggerFactory.getLogger(EncryptMojo.class);

    /** {@inheritDoc} */
    @Override
    protected void run(final EncryptionService service, final Path path, String encryptPrefix, String encryptSuffix, String decryptPrefix, String decryptSuffix) throws
            MojoExecutionException {<FILL_FUNCTION_BODY>}
}

        LOGGER.info("Encrypting file " + path);
        try {
            String contents = FileService.read(path);
            String encryptedContents = service.encrypt(contents, encryptPrefix, encryptSuffix, decryptPrefix, decryptSuffix);
            FileService.write(path, encryptedContents);

        } catch (Exception e) {
            throw new MojoExecutionException("Error Encrypting: " + e.getMessage(), e);
        }

    
<methods>public non-sealed void <init>() <variables>private java.lang.String path