提交 4c56874d 编写于 作者: K kohsuke

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
上级 2d44c63d
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册