org.openvpms.esci.service.client
Interface ServiceAuthenticator
- All Known Subinterfaces:
- ServiceAuthenticators
- All Known Implementing Classes:
- DefaultServiceAuthenticators
public interface ServiceAuthenticator
A callback that enables DefaultServiceLocator
to supply authentication for services that request it.
- Version:
- $LastChangedDate: 2006-05-02 05:16:31Z $
- Author:
- OpenVPMS Team
getPasswordAuthentication
PasswordAuthentication getPasswordAuthentication(String host,
InetAddress site,
int port,
String protocol,
String prompt,
String scheme,
URL url,
Authenticator.RequestorType requestorType)
- Parameters:
host
- the host name of the site or proxy requesting authentication, or null if not availablesite
- the InetAddress of the site requesting authorization, or null if it's not availableport
- the port number for the requested connectionprotocol
- the protocol that's requesting the connection. Often this will be based on a URL, but in a
future JDK it could be, for example, "SOCKS" for a password-protected SOCKS5 firewall.prompt
- the prompt string given by the requestor (realm for http requests)scheme
- the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example).url
- the URL that resulted in this request for authentication.requestorType
- authentication type of the requestor
- Returns:
- the PasswordAuthentication for the url, or null if none is available
Copyright © 2010-2011 OpenVPMS. All Rights Reserved..