Class DefaultSensitiveStringCodec
java.lang.Object
org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec
- All Implemented Interfaces:
SensitiveDataCodec<String>
A DefaultSensitiveDataCodec
The default implementation of SensitiveDataCodec. This class is used when the user indicates in the config file to use a masked password but doesn't give a codec implementation.
It supports one-way hash (digest) and two-way (encrypt-decrpt) algorithms The two-way uses "Blowfish" algorithm The one-way uses "PBKDF2" hash algorithm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringenvVarNameFromSystemPropertyName(String systemPropertyName) protected StringgetFromEnv(String envVarName) voidstatic voidThis main class is as documented on configuration-index.md, where the user can mask the password here.boolean
-
Field Details
-
ALGORITHM
- See Also:
-
BLOWFISH_KEY
- See Also:
-
ONE_WAY
- See Also:
-
TWO_WAY
- See Also:
-
KEY_SYSTEM_PROPERTY
- See Also:
-
-
Constructor Details
-
DefaultSensitiveStringCodec
public DefaultSensitiveStringCodec()
-
-
Method Details
-
decode
- Specified by:
decodein interfaceSensitiveDataCodec<String>- Throws:
Exception
-
encode
- Specified by:
encodein interfaceSensitiveDataCodec<String>- Throws:
Exception
-
init
- Specified by:
initin interfaceSensitiveDataCodec<String>- Throws:
Exception
-
main
This main class is as documented on configuration-index.md, where the user can mask the password here.- Throws:
Exception
-
verify
- Specified by:
verifyin interfaceSensitiveDataCodec<String>
-
getFromEnv
-
envVarNameFromSystemPropertyName
-