org.apache.tomcat.maven.runner
Class PasswordUtil

java.lang.Object
  extended by org.apache.tomcat.maven.runner.PasswordUtil

public class PasswordUtil
extends Object

Password obfuscate utility class. Lifted from Jetty org.mortbay.jetty.security.Password

Passwords that begin with OBF: are de obfuscated.

Passwords can be obfuscated by running Obfuscate as a main class. Obfuscated password are required if a system needs to recover the full password (eg. so that it may be passed to another system).

They are not secure, but prevent casual observation.

Since:
2.0
See Also:
Jetty Source org.mortbay.jetty.security.Password

Field Summary
static String __OBFUSCATE
           
 
Constructor Summary
PasswordUtil()
           
 
Method Summary
static String deobfuscate(String s)
           
static void deobfuscateSystemProps()
           
static void main(String[] args)
           
static String obfuscate(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__OBFUSCATE

public static final String __OBFUSCATE
See Also:
Constant Field Values
Constructor Detail

PasswordUtil

public PasswordUtil()
Method Detail

obfuscate

public static String obfuscate(String s)

deobfuscate

public static String deobfuscate(String s)

deobfuscateSystemProps

public static void deobfuscateSystemProps()

main

public static void main(String[] args)


Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.