|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.edustructures.sifworks.ADKProperties
com.edustructures.sifworks.TransportProperties
com.edustructures.sifworks.HttpProperties
com.edustructures.sifworks.HttpsProperties
public class HttpsProperties
Properties for the HTTPS transport protocol.
To set default HTTPS properties, call the Agent.getDefaultHttpsProperties
method to obtain the agent's default properties for this transport protocol.
The defaults are used by all zones that do not explicitly set their own
transport properties. Alternatively, you may set the default value of a
property by calling the System.setProperty method, or by using the -D option
on the Java command-line. Property names follow the naming convention
adk.transport.https.property (e.g.
adk.transport.https.port).
No default HTTP or HTTPS port is assigned to push mode agents by the class framework. It is the developer's responsibility to assign a default port. To do so, use one of the following methods:
adk.transport.https.port system property prior
to creating your agent's Zones and/or Topics. This property can be
set programmatically by calling the System.setProperty method, or
via the -D option on the Java command-line.
// Set transport properties for HTTP
Agent myAgent = ...
HttpProperties http = agent.getDefaultHttpProperties();
http.setPort( 7081 );
// Set transport properties for HTTPS
HttpsProperties https = agent.getDefaultHttpsProperties();
https.setPort( 7082 );
https.setKeystorePassword( "changeit" );
...
| Constructor Summary | |
|---|---|
HttpsProperties()
Constructor |
|
HttpsProperties(HttpProperties parent)
Constructs an HttpsProperties object that inherits values from a parent |
|
| Method Summary | |
|---|---|
java.lang.String |
getHostnameVerifier()
Gets the Hostname Verifier used by the class framework when establishing a connection to the ZIS. |
java.lang.String |
getKeyStore()
Gets the path to the keystore where the agent's certificate is stored. |
java.lang.String |
getKeyStorePassword()
Gets the passphrase used to open the keystore |
java.lang.String |
getPassword()
|
java.lang.String |
getProtocol()
Gets the name of the transport protocol associated with these properties |
boolean |
getRequireClientAuth()
Determines if Client Authentication is required when the ZIS establishes a connection with this agent in Push mode. |
java.lang.String |
getTrustStore()
|
java.lang.String |
getTrustStorePassword()
|
void |
setHostnameVerifier(java.lang.String verifier)
Sets the Hostname Verifier used by the class framework when establishing an HTTPS connection to the ZIS. |
void |
setKeyStore(java.lang.String keyStore)
Sets the path to the keystore where the agent's certificate is stored. |
void |
setKeyStorePassword(java.lang.String keyStorePass)
Sets the passphrase used to open the keystore |
void |
setPassword(java.lang.String pass)
|
void |
setRequireClientAuth(boolean auth)
Determines if Client Authentication is required when the ZIS establishes a connection with this agent in Push mode. |
void |
setTrustStore(java.lang.String trustStore)
|
void |
setTrustStorePassword(java.lang.String pwd)
|
| Methods inherited from class com.edustructures.sifworks.HttpProperties |
|---|
getHost, getPort, getPushHost, getPushPort, setHost, setPort, setPushHost, setPushPort |
| Methods inherited from class com.edustructures.sifworks.TransportProperties |
|---|
defaults |
| Methods inherited from class com.edustructures.sifworks.ADKProperties |
|---|
getParent, getProperty, getProperty, getProperty, getProperty, setProperty, setProperty, setProperty |
| Methods inherited from class java.util.Properties |
|---|
list, list, load, loadFromXML, propertyNames, save, store, storeToXML, storeToXML |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpsProperties()
public HttpsProperties(HttpProperties parent)
parent - The Http or HttpsProperties object from which properties
will be inherited if not explicitly defined by this object| Method Detail |
|---|
public java.lang.String getProtocol()
getProtocol in class HttpPropertiespublic java.lang.String getKeyStore()
public void setKeyStore(java.lang.String keyStore)
keyStore - The fully-qualified path to a Java keystore file in JKS
format.public java.lang.String getKeyStorePassword()
public void setKeyStorePassword(java.lang.String keyStorePass)
keyStorePass - The passphrase used to open the keystore filepublic java.lang.String getTrustStore()
public void setTrustStore(java.lang.String trustStore)
public java.lang.String getTrustStorePassword()
public void setTrustStorePassword(java.lang.String pwd)
public java.lang.String getPassword()
public void setPassword(java.lang.String pass)
public boolean getRequireClientAuth()
Client Authentication is only used when the agent is operating in a server role (i.e. push mode). It does not apply to outbound HTTPS connections or to plain HTTP connections.
public void setRequireClientAuth(boolean auth)
Client Authentication is only used when the agent is operating in a server role (that is, in Push mode). It does not apply to outbound HTTPS connections or to plain HTTP connections.
auth - true to require Client Authentication, false to disable it.public void setHostnameVerifier(java.lang.String verifier)
verifier - To disable hostname verification (the default), pass a
value of null to this method. To enable the default
hostname verification employed by Java's Secure Socket Extensions,
pass a value of "JSSE". To provide your own hostname verifier
implementation, pass the fully-qualified name of a class that
implements the com.sun.net.ssl.HostnameVerifier interface.public java.lang.String getHostnameVerifier()
null
is returned. If the default hostname verification offered by the Java
Secure Socket Extensions (JSSE) should be used, a value of "JSSE"
is returned. If the agent uses its own implementation of the
com.sun.net.ssl.HostnameVerifier interface, the
fully-qualified classname of that implementation is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||