Modifier and Type | Class and Description |
---|---|
static class |
ServiceSettings.Extensions
Each enumeration represents an Open Inventor extension.
|
static class |
ServiceSettings.RunModes
The run mode is used to change the behaviour of the RemoteViz execution in three environments.
|
static class |
ServiceSettings.SecurityProtocols
Each enumeration represents a security protocol.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
ServiceSettings()
Constructor.
|
ServiceSettings(ServiceSettings obj)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
enableSecureConnection(java.lang.String publicCertificateFilePath,
java.lang.String privateKeyFilePath)
Calls enableSecureConnection(publicCertificateFilePath, privateKeyFilePath, java.util.EnumSet.of( ServiceSettings.SecurityProtocols.TLSv1_1, ServiceSettings.SecurityProtocols.TLSv1_2, ServiceSettings.SecurityProtocols.TLSv1_3 )).
|
void |
enableSecureConnection(java.lang.String publicCertificateFilePath,
java.lang.String privateKeyFilePath,
java.util.EnumSet<ServiceSettings.SecurityProtocols> enabledSecurityProtocols)
Secures the connection between the server and the clients.
|
void |
enableSecureConnection(java.lang.String publicCertificateFilePath,
java.lang.String privateKeyFilePath,
int enabledSecurityProtocols)
Deprecated.
As of Open Inventor 9.8.0, use
#enableSecureConnection(java.lang.String
publicCertificateFilePath, java.lang.String privateKeyFilePath,
java.util.EnumSet instead. |
void |
enableSecureConnection(java.lang.String publicCertificateFilePath,
java.lang.String privateKeyFilePath,
ServiceSettings.SecurityProtocols enabledSecurityProtocols)
Deprecated.
As of Open Inventor 9.7.2, use
enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath, int enabledSecurityProtocols)
instead. |
ServiceSettings.SecurityProtocols |
getEnabledSecurityProtocols()
Gets the security procotols used in RemoteViz.
|
java.lang.String |
getHostname()
Gets the current host name.
|
java.lang.String |
getIP()
Gets the IP address.
|
Monitoring |
getMonitoring()
Gets the monitoring object which allows to manage metrics listeners that monitor states and performances of the service.
|
java.util.EnumSet<ServiceSettings.Extensions> |
getOivUsedExtensions()
Gets the used Open Inventor extensions.
|
short |
getPort()
Gets the port of the service.
|
java.lang.String |
getPrivateKeyFile()
Gets the private key used to sign the server key exchange between the client and the server.
|
java.lang.String |
getPublicCertificateFile()
Gets the public certificate authenticating the server to the clients.
|
ServiceSettings.RunModes |
getRunMode()
Gets the run mode of the service.
|
ServiceSettings.Extensions |
getUsedExtensions()
Deprecated.
As of Open Inventor 9800. See documentation for more details.
|
boolean |
isSecureConnection()
Gets the SSL engine activation.
|
void |
setIP(java.lang.String ip)
Sets the IP address.
|
void |
setOivUsedExtensions(java.util.EnumSet<ServiceSettings.Extensions> extensions)
Sets the Open Inventor extensions used by a RemoteViz application.
|
void |
setPort(short port)
Sets the port of the service.
|
void |
setRunMode(ServiceSettings.RunModes runmode)
Sets the run mode of the service.
|
void |
setUsedExtensions(ServiceSettings.Extensions extensions)
Deprecated.
As of Open Inventor 9800. See documentation for more details.
|
dispose, getNativeResourceHandle
public ServiceSettings(ServiceSettings obj)
public ServiceSettings()
@Deprecated public void enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath, ServiceSettings.SecurityProtocols enabledSecurityProtocols)
enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath, int enabledSecurityProtocols)
instead.enableSecureConnection
method instead.
publicCertificateFilePath
- : Path to a file containing the public certificate used to
authenticate the server to the clients. The certificate has to be
a PEM ("Privacy Enhanced Mail") encoded certificate.
privateKeyFilePath
- : Path to a file containing the private key used to sign the
server key exchange between the client and the server. If the
private key is protected by a passphrase, set the passphrase into
the
ServiceListener.onRequestedPrivateKeyPassphrase
callback.
enabledSecurityProtocols
- : Defines the security protocols used to secure the exchange
between the client and the server. By default, the TLSv1, TLSv1.1
and TLSv1.2 protocols are enabled. A bitmask of the security
protocols is used. Many security protocols can be enabled by using
the logical OR operator. @Deprecated public void enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath, int enabledSecurityProtocols)
#enableSecureConnection(java.lang.String
publicCertificateFilePath, java.lang.String privateKeyFilePath,
java.util.EnumSet
enabledSecurityProtocols)
instead.enableSecureConnection
method instead.
publicCertificateFilePath
- : Path to a file containing the public certificate used to
authenticate the server to the clients. The certificate has to be
a PEM ("Privacy Enhanced Mail") encoded certificate.
privateKeyFilePath
- : Path to a file containing the private key used to sign the
server key exchange between the client and the server. If the
private key is protected by a passphrase, set the passphrase into
the
ServiceListener.onRequestedPrivateKeyPassphrase
callback.
enabledSecurityProtocols
- : Defines the security protocols used to secure the exchange
between the client and the server. By default, the TLSv1, TLSv1.1
and TLSv1.2 protocols are enabled. A bitmask of the security
protocols is used. Many security protocols can be enabled by using
the logical OR operator. @Deprecated public ServiceSettings.Extensions getUsedExtensions()
getOivUsedExtensions
method instead.
@Deprecated public void setUsedExtensions(ServiceSettings.Extensions extensions)
setOivUsedExtensions
method instead.
The activation of VolumeVizLDM extension will lead to the activation of
VolumeViz extension.
extensions
- : the bitmask of the Open Inventor extensions used in RemoteViz.
Many extensions can be activated by using the logical OR operator. public java.lang.Object clone()
clone
in class java.lang.Object
public void enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath)
public void setPort(short port)
port
- : the port used by the instancepublic java.lang.String getPublicCertificateFile()
public void setIP(java.lang.String ip)
ip
- : the IP address used by the instancepublic java.util.EnumSet<ServiceSettings.Extensions> getOivUsedExtensions()
public java.lang.String getIP()
public java.lang.String getPrivateKeyFile()
public java.lang.String getHostname()
public boolean isSecureConnection()
public void enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath, java.util.EnumSet<ServiceSettings.SecurityProtocols> enabledSecurityProtocols)
publicCertificateFilePath
- : Path to a file containing the public certificate used to authenticate the server to the clients. The certificate has to be a PEM ("Privacy Enhanced Mail") encoded certificate.
privateKeyFilePath
- : Path to a file containing the private key used to sign the server key exchange between the client and the server. If the private key is protected by a passphrase, set the passphrase into the ServiceListener.onRequestedPrivateKeyPassphrase
callback.
enabledSecurityProtocols
- : Defines the security protocols used to secure the exchange between the client and the server. By default, TLSv1.1, TLSv1.2 and TLSv1.3 protocols are enabled. A bitmask of the security protocols is used. Many security protocols can be enabled by using the logical OR operator. public Monitoring getMonitoring()
public void setOivUsedExtensions(java.util.EnumSet<ServiceSettings.Extensions> extensions)
Service.open()
to check if all the licenses necessary to start the Service
are available (necessary licenses are explained below) RemoteViz and Open Inventor (if used) is protected by a license key mechanism that limits its usage to specified computers or network environments based on a commercial agreement. Depending on the license agreement, license keys are floating licenses managed by a license server or an encrypted "master password" string (see SoLockManager).
If the Service
uses Open Inventor for rendering (runMode is not INDEPENDENT_SERVICE), then one Open Inventor license plus one license of each used extension is required to start the service. (An SDK license for development/debugging or a Runtime license for deployment.) If this method was called and licenses are missing, Service.open()
will return false. If this method was not called, the licenses will not be checked until the first call to create an Open Inventor node. Alternatively the application can do explicit license checks by calling SoLicensesInfo.check()
before opening the Service
or creating any Open Inventor nodes. Note: Enabling the VolumeVizLDM extension automatically enables the VolumeViz extension.
One RemoteViz license is required for each Connection
created. (An SDK license for development/debugging or a Runtime license for deployment.) If the RemoteViz license is missing when a Connection
is needed, ServiceListener.onMissingLicense()
will be called.
When using the run mode INDEPENDENT_SERVICE, this method has no effect, i.e., no Open Inventor licenses will be required to start the service.
extensions
- : the bitmask of the Open Inventor extensions used in RemoteViz. Many extensions can be activated by using the logical OR operator. public short getPort()
public void setRunMode(ServiceSettings.RunModes runmode)
runmode
- : the type of run mode used by the instancepublic ServiceSettings.RunModes getRunMode()
public ServiceSettings.SecurityProtocols getEnabledSecurityProtocols()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com