- All Implemented Interfaces:
- org.eclipse.jetty.client.api.Authentication
- Enclosing class:
- APIConnectClient
public class APIConnectClient.FlexibleBasicAuthentication
extends org.eclipse.jetty.client.util.BasicAuthentication
Overrides the BasicAuthentication class provided by the Jetty http
client.
The standard BasicAuthentication class provided by the Jetty client
does not handle including a port number in the URL, and it also
matches on a predefined Realm (which should be 'IBM-APIManagement' but
we do not want to be broken if this changes, so we override the match
method to be a bit more forgiving and pass everything else on to
the real BasicAuthetication.