|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.avis.client.ElvinOptions
public final class ElvinOptions
Options for configuring an Elvin client connection. Includes router
connection parameters, security keys, SSL parameters and timeouts.
The options object used to initialise the Elvin connection cannot
be directly changed after the connection is created, but some
settings can be changed on a live connection object using supported
methods such as Elvin.setNotificationKeys(Keys)
, etc.
Field Summary | |
---|---|
ConnectionOptions |
connectionOptions
The options sent to the router to negotiate connection parameters. |
KeyStore |
keystore
The keystore used for TLS/SSL secure connections (i.e. |
String |
keystorePassphrase
The passphrase used to secure the keystore and its keys. |
long |
livenessTimeout
The liveness timeout period (in milliseconds). |
Keys |
notificationKeys
The global notification keys that apply to all notifications. |
long |
receiveTimeout
The amount of time (in milliseconds) that must pass before the router is assumed to not be responding to a request. |
boolean |
requireAuthenticatedServer
Used to ensure that the router the client is connected to is authentic. |
Keys |
subscriptionKeys
The global subscription keys that apply to all subscriptions. |
Constructor Summary | |
---|---|
ElvinOptions()
|
|
ElvinOptions(ConnectionOptions connectionOptions,
Keys notificationKeys,
Keys subscriptionKeys)
|
Method Summary | |
---|---|
ElvinOptions |
clone()
Create a copy of this option set. |
void |
setKeystore(String keystorePath,
String passphrase)
Shortcut to load a keystore from a Java keystore file. |
void |
setKeystore(URL keystoreUrl,
String passphrase)
Shortcut to load a keystore from a Java keystore file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ConnectionOptions connectionOptions
public Keys notificationKeys
public Keys subscriptionKeys
public KeyStore keystore
setKeystore(URL, String)
public String keystorePassphrase
keystore
public boolean requireAuthenticatedServer
keystore
public long receiveTimeout
Elvin.setReceiveTimeout(long)
public long livenessTimeout
Elvin.setLivenessTimeout(long)
Constructor Detail |
---|
public ElvinOptions()
public ElvinOptions(ConnectionOptions connectionOptions, Keys notificationKeys, Keys subscriptionKeys)
Method Detail |
---|
public ElvinOptions clone()
clone
in class Object
public void setKeystore(String keystorePath, String passphrase) throws IOException
keystorePath
- The file path for the keystore.passphrase
- The passphrase for the keystore.
IOException
- if an error occurred while loading the
keystore.setKeystore(URL, String)
public void setKeystore(URL keystoreUrl, String passphrase) throws IOException
keystoreUrl
- The URL for the keystore file.passphrase
- The passphrase for the keystore.
IOException
- if an error occurred while loading the
keystore.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |