Package org.refcodes.textual
Interface SecretHintBuilder
-
- All Superinterfaces:
Text<SecretHintBuilder>
,TextAccessor
,TextAccessor.TextBuilder<SecretHintBuilder>
,TextAccessor.TextMutator
,TextAccessor.TextProperty
,TextAccessor.TextProvider
- All Known Implementing Classes:
SecretHintBuilderImpl
public interface SecretHintBuilder extends Text<SecretHintBuilder>
Dangerous builder for printing secret text such as passwords or pass-phrases or keys without unveiling too much of the secret information with still being able to say if the correct secret is being displayed. Useful in log-files, do not use any production log level! USE WITH CAUTION!
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.textual.TextAccessor
TextAccessor.TextBuilder<B extends TextAccessor.TextBuilder<B>>, TextAccessor.TextMutator, TextAccessor.TextProperty, TextAccessor.TextProvider
-
-
Method Summary
All Methods Static Methods Default Methods Modifier and Type Method Description static java.lang.String
asString(java.lang.String aText)
Convenience method for directly invokingText.toString(String...)
without leaving any state.static java.lang.String
asString(java.lang.String... aText)
Convenience method for directly invokingText.toString(String...)
without leaving any state.static java.lang.String[]
asStrings(java.lang.String... aText)
Convenience method for directly invokingText.toString(String...)
without leaving any state.-
Methods inherited from interface org.refcodes.textual.TextAccessor
getText
-
Methods inherited from interface org.refcodes.textual.TextAccessor.TextBuilder
withText
-
Methods inherited from interface org.refcodes.textual.TextAccessor.TextMutator
setText, setText
-
Methods inherited from interface org.refcodes.textual.TextAccessor.TextProvider
toString, toStrings
-
-
-
-
Method Detail
-
asString
static java.lang.String asString(java.lang.String aText)
Convenience method for directly invokingText.toString(String...)
without leaving any state.- Parameters:
aText
- The text to be obscured.- Returns:
- The now obscured text.
-
asString
static java.lang.String asString(java.lang.String... aText)
Convenience method for directly invokingText.toString(String...)
without leaving any state.- Parameters:
aText
- The text to be obscured.- Returns:
- The now obscured text.
-
asStrings
static java.lang.String[] asStrings(java.lang.String... aText)
Convenience method for directly invokingText.toString(String...)
without leaving any state.- Parameters:
aText
- array The text to be obscured.- Returns:
- The now obscured text array.
-
-