hudson.util
Class Protector

java.lang.Object
  extended by hudson.util.Protector

public class Protector
extends Object

Encrypt/decrypt data by using a "session" key that only lasts for the duration of the server instance.

Since:
1.162
Author:
Kohsuke Kawaguchi
See Also:
Scrambler

Constructor Summary
Protector()
           
 
Method Summary
static String protect(String secret)
           
static String unprotect(String data)
          Returns null if fails to decrypt properly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protector

public Protector()
Method Detail

protect

public static String protect(String secret)

unprotect

public static String unprotect(String data)
Returns null if fails to decrypt properly.



Copyright © 2004-2013. All Rights Reserved.