Package org.drasyl.util
Class SecretUtil
java.lang.Object
org.drasyl.util.SecretUtil
Utility class for security-related operations.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic StringmaskSecret(Object secret) This method replaces each character in the return ofsecret'sObject.toString()-call with a asterisk. 
- 
Method Details
- 
maskSecret
This method replaces each character in the return ofsecret'sObject.toString()-call with a asterisk. Can be used to mask secrets (like private keys or passwords).- Parameters:
 secret- the secret to be masked- Returns:
 - a masked secret
 
 
 -