Constructor that accepts only the username and password credentials.
Syntax
UsernamePasswordCallbackHandler
(
String
username
,
char[]
password
)
Parameters
-
username –
Username to use when authenticating
-
password –
Password to use when authenticating
Usage
Same as the other constructor, assumes the value "false" for allowMultipleAuthentications flag.