From 4c56874d72051c87b95d07847522c1ed36a4977e Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 1 Nov 2010 18:48:42 +0000 Subject: [PATCH] should be remotable (to the extent we don't try to compute encrypted value.) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36547 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/util/Secret.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/util/Secret.java b/core/src/main/java/hudson/util/Secret.java index b48b871608..134906e7f5 100644 --- a/core/src/main/java/hudson/util/Secret.java +++ b/core/src/main/java/hudson/util/Secret.java @@ -35,6 +35,7 @@ import org.kohsuke.stapler.Stapler; import javax.crypto.SecretKey; import javax.crypto.Cipher; +import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.io.IOException; import java.security.GeneralSecurityException; @@ -52,7 +53,7 @@ import java.security.GeneralSecurityException; * * @author Kohsuke Kawaguchi */ -public final class Secret { +public final class Secret implements Serializable { /** * Unencrypted secret text. */ @@ -210,6 +211,8 @@ public final class Secret { */ /*package*/ static String SECRET = null; + private static final long serialVersionUID = 1L; + static { Stapler.CONVERT_UTILS.register(new org.apache.commons.beanutils.Converter() { public Secret convert(Class type, Object value) { -- GitLab