| Modifier and Type | Field and Description |
|---|---|
(package private) Obfuscater |
actor |
(package private) Properties |
props |
| Constructor and Description |
|---|
SecAdapter(Properties props) |
SecAdapter(Properties props,
char[] password) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPassword()
Clear the password from heap memory after use.
|
void |
decrypt(String key) |
char[] |
decryptToChar(String key) |
void |
deobfuscate(String key)
Deobfuscate the value of a given key.
|
char[] |
deobfuscateToChar(String key)
Deobfuscate and return a char buffer as used in password APIs.
|
void |
encrypt(String key)
encryption - for this to work you must set a password using the correct constructor.
|
void |
obfuscate(String key)
Obfuscate the value of the given key.
|
final Properties props
final Obfuscater actor
public SecAdapter(Properties props)
public SecAdapter(Properties props, char[] password)
public void obfuscate(String key)
Secpublic void deobfuscate(String key)
Secdeobfuscate in interface Secpublic char[] deobfuscateToChar(String key)
SecdeobfuscateToChar in interface Secpublic void encrypt(String key)
Secpublic char[] decryptToChar(String key)
decryptToChar in interface Secpublic void clearPassword()
SecclearPassword in interface SecCopyright © 2011–2018 David R. Smith. All rights reserved.