Class SecretUtil

  • public class SecretUtil
    extends Object
    Utility class for security-related operations.
    • Method Detail

      • maskSecret

        public static String maskSecret​(Object secret)
        This method replaces each character in the return of secret's Object.toString()-call with a asterisk. Can be used to mask secrets (like private keys or passwords).
        secret - the secret to be masked
        a masked secret