Dashboard Builder Commons 6.0.0.Final

org.jboss.dashboard.commons.security.password
Class PasswordObfuscator

java.lang.Object
  extended by org.jboss.dashboard.commons.security.password.PasswordObfuscator

@ApplicationScoped
@Named(value="passwordObfuscator")
public class PasswordObfuscator
extends Object


Field Summary
protected  PBEWithMD5AndDESCipher cipher
           
protected  boolean enabled
           
protected  String prefix
           
 
Constructor Summary
PasswordObfuscator()
           
 
Method Summary
 String deobfuscate(String password)
           
 PBEWithMD5AndDESCipher getCipher()
           
 String getPrefix()
           
 boolean isEnabled()
           
 boolean isObfuscated(String password)
           
static PasswordObfuscator lookup()
           
 String obfuscate(String password)
           
 void setCipher(PBEWithMD5AndDESCipher cipher)
           
 void setEnabled(boolean enabled)
           
 void setPrefix(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

@Inject
protected boolean enabled

prefix

@Inject
protected String prefix

cipher

protected PBEWithMD5AndDESCipher cipher
Constructor Detail

PasswordObfuscator

public PasswordObfuscator()
Method Detail

lookup

public static PasswordObfuscator lookup()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getPrefix

public String getPrefix()

setPrefix

public void setPrefix(String prefix)

getCipher

public PBEWithMD5AndDESCipher getCipher()

setCipher

public void setCipher(PBEWithMD5AndDESCipher cipher)

isObfuscated

public boolean isObfuscated(String password)

obfuscate

public String obfuscate(String password)

deobfuscate

public String deobfuscate(String password)

Dashboard Builder Commons 6.0.0.Final

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.