public interface NetworkAuthenticator
Authenticator
instance will delegate password authentication requests to implementations provided by
the connector. Connectors can implement NetworkAuthenticatorConnector
, instead of Connector
, to
provide a network authenticator that will only be used for that connector. The NetworkAuthenticatorContext
is
used to provide the context of the authentication request in order to support credential management in the
authenticator implementation.Modifier and Type | Method and Description |
---|---|
PasswordAuthentication |
requestPasswordAuthentication(NetworkAuthenticatorContext context)
This method is used to request a
PasswordAuthentication instance based on the specified context. |
PasswordAuthentication requestPasswordAuthentication(NetworkAuthenticatorContext context)
PasswordAuthentication
instance based on the specified context.
Implementations should use the information in the provided context to determine the correct credentials for the
request.context
- NetworkAuthenticatorContext
with authentication request detailsPasswordAuthentication
with user credentials if authentication is required for the network
connection, null otherwise