public class TlsServerAddressHolder extends ServerAddressHolder
ServerAddress with a protocol, as we do not want to have setters there.| Modifier and Type | Field and Description |
|---|---|
private String |
keyAlias |
private String |
keyPassword |
private File |
keystore |
| Constructor and Description |
|---|
TlsServerAddressHolder()
Creates an instance (deserialization).
|
TlsServerAddressHolder(de.iip_ecosphere.platform.support.Schema schema,
String host,
int port)
Creates an instance for unencrypted communication.
|
TlsServerAddressHolder(de.iip_ecosphere.platform.support.ServerAddress addr)
Creates an instance from a given instance for unencrypted communication (serialization).
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyAlias()
Returns the alias denoting the key to use.
|
String |
getKeyPassword()
Returns the password for the optional TLS keystore.
|
File |
getKeystore()
Returns the optional TLS keystore.
|
de.iip_ecosphere.platform.support.net.KeyStoreDescriptor |
getKeystoreDescriptor()
Returns a keystore descriptor representing the keystore information.
|
void |
setKeyAlias(String alias)
Returns the alias denoting the key to use.
|
void |
setKeyPassword(String keyPassword)
Returns the password for the optional TLS keystore.
|
void |
setKeystore(File keystore)
Returns the optional TLS keystore.
|
getHost, getPort, getSchema, getServerAddress, isRunning, setHost, setPort, setRunning, setSchemaprivate File keystore
private String keyPassword
private String keyAlias
public TlsServerAddressHolder()
public TlsServerAddressHolder(de.iip_ecosphere.platform.support.Schema schema,
String host,
int port)
schema - the schemahost - the host nameport - the portpublic TlsServerAddressHolder(de.iip_ecosphere.platform.support.ServerAddress addr)
addr - the instance to take data frompublic File getKeystore()
public String getKeyPassword()
public String getKeyAlias()
public void setKeystore(File keystore)
keystore - the TLS keystore (suffix ".jks" points to Java Key store, suffix ".p12" to PKCS12 keystore), may
be null for nonepublic void setKeyPassword(String keyPassword)
keyPassword - the TLS keystore, may be null for nonepublic void setKeyAlias(String alias)
alias - the alias, may be null for none/first matchpublic de.iip_ecosphere.platform.support.net.KeyStoreDescriptor getKeystoreDescriptor()
keystore is nullCopyright © 2022. All rights reserved.