Interface NuggetCliSecretReader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies shortest-scope PIN material to the nugget CLI when an interactive
command explicitly asks for it.
Implementations must return a fresh mutable character array and must not
retain a reference to the returned value. The CLI clears working copies where
practical after submission or rejection. A null or empty result means
that secure secret input is unavailable.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NuggetCliSecretReaderconsole()Returns a reader backed bySystem.console().char[]Reads a PIN for the supplied safe prompt.
-
Method Details
-
readPin
Reads a PIN for the supplied safe prompt.- Parameters:
prompt- safe prompt text- Returns:
- mutable PIN characters, or
nullwhen unavailable
-
console
Returns a reader backed bySystem.console().- Returns:
- console-backed secret reader
-