Interface PasswordFinder
- All Known Implementing Classes:
ConsolePasswordFinder
public interface PasswordFinder
Services requests for plaintext passwords.
-
Method Summary
Modifier and TypeMethodDescriptionchar[]reqPassword(Resource<?> resource) Request password for specified resource.booleanshouldRetry(Resource<?> resource) If password turns out to be incorrect, indicates whether another call toreqPassword(Resource)should be made.
-
Method Details
-
reqPassword
Request password for specified resource. This method may returnnullwhen the request cannot be serviced, e.g. when the user cancels a password prompt.- Parameters:
resource- the resource for which password is being requested- Returns:
- the password or
null
-
shouldRetry
If password turns out to be incorrect, indicates whether another call toreqPassword(Resource)should be made. This method is geared at interactive implementations, and stub implementations may simply returnfalse.- Parameters:
resource- the resource for which password is being requested- Returns:
- whether to retry requesting password for a particular resource
-