Class EncryptionUtil
- java.lang.Object
-
- com.veracode.jenkins.plugin.utils.EncryptionUtil
-
public final class EncryptionUtil extends Object
The EncryptionUtil is a utility class for encrypting and decrypting plugin-related configuration data.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
decrypt(String data)
Decrypts an encrypted text String.static String
encrypt(String data)
Encrypts a plain text String.static void
encrypt(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
Encrypts plugin-related configuration data present in aStaplerRequest
and aJSONObject
object before it is persisted to disk.
-
-
-
Method Detail
-
encrypt
public static void encrypt(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws javax.servlet.ServletException
Encrypts plugin-related configuration data present in aStaplerRequest
and aJSONObject
object before it is persisted to disk.- Parameters:
req
- aStaplerRequest
object.formData
- aJSONObject
object.- Throws:
javax.servlet.ServletException
- if any.
-
-