public interface ServiceUsernameAndPasswordProvider
Used by Credential Manager when looking up the username and password for the service in its Keystore - if it cannot find anything it will loop through all providers until one can provide them. If none can, the service invocation will (most probably) fail.
A typical implementation of this class would pop up a dialog and ask the user
for the password. Such providers should check
GraphicsEnvironment#isHeadless() before returning to avoid attempts
to pop up dialogues on server/headless installations.
|Modifier and Type||Method and Description|
Get the username and password pair for the given service URI.
Set the username and password pair for the given service URI.
UsernamePassword getServiceUsernameAndPassword(URI serviceURI, String requestMessage)
serviceURI- The service we are looking username and password for
requestMessage- The message to be presented to the user when asking for the username and password, normally useful for UI providers that pop up dialogs, can be ignored otherwise
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.