public class SecretRewriter extends Object
| Constructor and Description |
|---|
SecretRewriter(File backupDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isIgnoredDir(File dir)
Decides if this directory is worth visiting or not.
|
boolean |
rewrite(File f,
File backup) |
int |
rewriteRecursive(File dir,
TaskListener listener)
Recursively scans and rewrites a directory.
|
public SecretRewriter(File backupDirectory) throws GeneralSecurityException
GeneralSecurityExceptionpublic boolean rewrite(File f, File backup) throws InvalidKeyException, IOException
backup - if non-null, the original file will be copied here before rewriting.
if the rewrite doesn't happen, no copying.InvalidKeyExceptionIOExceptionpublic int rewriteRecursive(File dir, TaskListener listener) throws InvalidKeyException
InvalidKeyExceptionprotected boolean isIgnoredDir(File dir)
Copyright © 2019. All rights reserved.