Class MaskedString
-
- All Implemented Interfaces:
-
kotlin.CharSequence
public final class MaskedString implements CharSequence
A class that wraps a CharSequence and overrides some functions to return a configurable mask string instead of the actual content. The main use case for this class is to prevent that sensitive information like passwords are visible in log output. The class can be used everywhere a CharSequence is accepted.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDEFAULT_MASKprivate final CharSequencevalueprivate final Stringmaskprivate final Integerlength
-
Constructor Summary
Constructors Constructor Description MaskedString(CharSequence value, String mask)
-
Method Summary
-
-
Constructor Detail
-
MaskedString
MaskedString(CharSequence value, String mask)
-
-
-
-