Package hudson.util
Class SecretRewriter
java.lang.Object
hudson.util.SecretRewriter
Rewrites XML files by looking for Secrets that are stored with the old key and replaces them
by the new encrypted values.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisIgnoredDir(File dir) Decides if this directory is worth visiting or not.booleanbooleanDeprecated.SECURITY-376:backupis ignoredintrewriteRecursive(File dir, TaskListener listener) Recursively scans and rewrites a directory.
-
Constructor Details
-
SecretRewriter
- Throws:
GeneralSecurityException
-
SecretRewriter
Deprecated.SECURITY-376:backupDirectoryis ignored- Throws:
GeneralSecurityException
-
-
Method Details
-
rewrite
Deprecated.SECURITY-376:backupis ignored- Throws:
InvalidKeyExceptionIOException
-
rewrite
- Throws:
InvalidKeyExceptionIOException
-
rewriteRecursive
Recursively scans and rewrites a directory. This method shouldn't abort just because one file fails to rewrite.- Returns:
- Number of files that were actually rewritten.
- Throws:
InvalidKeyException
-
isIgnoredDir
Decides if this directory is worth visiting or not.
-
backupDirectoryis ignored