Package hudson.util
Class Protector
- java.lang.Object
-
- hudson.util.Protector
-
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.236") 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 and restricted since 2.236
- Author:
- Kohsuke Kawaguchi
- See Also:
Scrambler
-
-
Constructor Summary
Constructors Constructor Description Protector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
protect(String secret)
static String
unprotect(String data)
Returns null if fails to decrypt properly.
-