@ApplicationScoped @Named(value="passwordObfuscator") public class PasswordObfuscator extends Object
Modifier and Type | Field and Description |
---|---|
protected PBEWithMD5AndDESCipher |
cipher |
protected boolean |
enabled |
protected String |
prefix |
Constructor and Description |
---|
PasswordObfuscator() |
Modifier and Type | Method and Description |
---|---|
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) |
@Inject protected boolean enabled
@Inject protected String prefix
protected PBEWithMD5AndDESCipher cipher
public static PasswordObfuscator lookup()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public String getPrefix()
public void setPrefix(String prefix)
public PBEWithMD5AndDESCipher getCipher()
public void setCipher(PBEWithMD5AndDESCipher cipher)
public boolean isObfuscated(String password)
Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.