public class DefaultSensitiveStringCodec extends Object implements SensitiveDataCodec<String>
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM |
static String |
BLOWFISH_KEY |
static String |
ONE_WAY |
static String |
TWO_WAY |
| Constructor and Description |
|---|
DefaultSensitiveStringCodec() |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(Object secret) |
String |
encode(Object secret) |
void |
init(Map<String,String> params) |
static void |
main(String[] args)
This main class is as documented on configuration-index.md, where the user can mask the password here.
|
boolean |
verify(char[] inputValue,
String storedValue) |
public static final String ALGORITHM
public static final String BLOWFISH_KEY
public static final String ONE_WAY
public static final String TWO_WAY
public String decode(Object secret) throws Exception
decode in interface SensitiveDataCodec<String>Exceptionpublic String encode(Object secret) throws Exception
encode in interface SensitiveDataCodec<String>Exceptionpublic void init(Map<String,String> params) throws Exception
init in interface SensitiveDataCodec<String>Exceptionpublic static void main(String[] args) throws Exception
args - Exceptionpublic boolean verify(char[] inputValue,
String storedValue)
Copyright © 2017 JBoss by Red Hat. All rights reserved.