public interface ProtocolHandlerFactory
Modifier and Type | Interface and Description |
---|---|
static class |
ProtocolHandlerFactory.KeyStoreConfig
This class contains the keystore configuration.
|
static class |
ProtocolHandlerFactory.TrustStoreConfig
This class contains the truststore configuration.
|
Modifier and Type | Method and Description |
---|---|
ProtocolHandler |
getInsecureProtocolHandler(String type,
String args,
ApiProvider provider)
Create a insecure protocol handler.
|
ProtocolHandler |
getProtocolHandler(String type,
String args,
String secureArgs,
String clientAuth,
ProtocolHandlerFactory.KeyStoreConfig keystoreConfig,
ProtocolHandlerFactory.TrustStoreConfig truststoreConfig,
ApiProvider provider)
Create protocol handler with configurable client authentication.
|
ProtocolHandler |
getProtocolHandler(String type,
String args,
String secureArgs,
String keystore,
String keystorePassword,
String keyPassword,
ApiProvider provider)
Create protocol handler.
|
ProtocolHandler getProtocolHandler(String type, String args, String secureArgs, String keystore, String keystorePassword, String keyPassword, ApiProvider provider)
Protocol handler has a Http Endpoint if args is not null
Protocol handler has a Https Endpoint if secureArgs is not null. A valid keystore configuration must be provided in this case
type
- protocol type; must not be null
args
- http uri; might be null
secureArgs
- https uri; might be null
keystore
- the keystore, which contains the server certificates and
keys; must be not null
if secureArgs is providedkeystorePassword
- the keystore password; might be null
keyPassword
- the key password, if different from the keystore
password; might be null
provider
- the API provider; must not be null
ProtocolHandler getProtocolHandler(String type, String args, String secureArgs, String clientAuth, ProtocolHandlerFactory.KeyStoreConfig keystoreConfig, ProtocolHandlerFactory.TrustStoreConfig truststoreConfig, ApiProvider provider)
Protocol handler has a Http Endpoint if args is not null
Protocol handler has a Https Endpoint if secureArgs is not null. A valid keystore configuration must be provided in this case. A valid truststore configuration must be provided client authentication
type
- protocol type; must not be null
args
- http uri; might be null
secureArgs
- https uri; might be null
clientAuth
- the client authentication to be used: true to require a
valid certificate from the client to accept a connection and
fail if the certificate is not supplied, want to request the
client to supply a valid certificate, but do not fail if is
not provided, false to not require a client certificate; might
be null
keystoreConfig
- the keystore configuration; must be not
null
if secureArgs is providedtruststoreConfig
- the trustore configuration; must be not
null
if client authentication is trueprovider
- the API provider; must not be null
ProtocolHandler getInsecureProtocolHandler(String type, String args, ApiProvider provider)
type
- protocol type; must not be null
args
- http uri; might be null
provider
- the API provider; must not be null
Copyright © 2015. All Rights Reserved.