Class Destination
java.lang.Object
org.projecthusky.common.communication.Destination
The Class Destination. Describes an Endpoint for a transmission or
communication.
-
Constructor Summary
ConstructorsConstructorDescriptionCommunication Endpoint for any transaction.Destination
(String senderOrganizationalOid, URI uri) Communication Endpoint for an unsecured transaction.Destination
(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword) Communication Endpoint for a TLS-secured transaction with a single keystore that combines keystore and truststore.Destination
(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword, String keyStoreType) Communication Endpoint for a TLS-secured transaction with a single keystore that combines keystore and truststore.Destination
(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword, String trustStore, String trustStorePassword) Communication Endpoint for a TLS-secured transaction with a seperate keystore and truststore.Destination
(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword, String keyStoreType, String trustStore, String trustStorePassword, String trustStoreType) Communication Endpoint for a TLS-secured transaction with a seperate keystore and truststore.Destination
(Destination origin) Clones existing Communication Endpoint -
Method Summary
Modifier and TypeMethodDescriptionGets the path to the keystoreGets the passoword for the keystoreMethod to getGets the receiver application oid.Gets the receiver facility oid.Gets the sender application oid.Gets the sender facility oid.Gets the sender Organizational OIDGets the path to the truststoreGets the password for the trust storeMethod to getgetUri()
void
setKeyStore
(String keyStore) Sets the path to the key storevoid
setKeyStorePassword
(String keyStorePassword) Sets the password for the key storevoid
setKeyStoreType
(String keyStoreType) Method to setvoid
setReceiverApplicationOid
(String receiverApplicationOid) Sets the receiver application oid.void
setReceiverFacilityOid
(String receiverFacilityOid) Sets the receiver facility oid.void
setSenderApplicationOid
(String senderApplicationOid) Sets the sender application oid.void
setSenderFacilityOid
(String senderFacilityOid) Sets the sender facility oid.void
setSenderOrganizationalOid
(String senderOrganizationalOid) void
setTrustStore
(String trustStore) void
setTrustStorePassword
(String trustStorePassword) Sets the trust store password. Setzt trust store password.void
setTrustStoreType
(String trustStoreType) Method to setvoid
-
Constructor Details
-
Destination
public Destination()Communication Endpoint for any transaction. -
Destination
Communication Endpoint for an unsecured transaction.- Parameters:
senderOrganizationalOid
- Oid of the Sender Organizationuri
- URI of the communication endpoint
-
Destination
public Destination(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword) Communication Endpoint for a TLS-secured transaction with a single keystore that combines keystore and truststore.- Parameters:
senderOrganizationalOid
- Your OIDuri
- URI of the communication endpointkeyStore
- path to the keystore filekeyStorePassword
- the password for the keystore file
-
Destination
public Destination(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword, String keyStoreType) Communication Endpoint for a TLS-secured transaction with a single keystore that combines keystore and truststore.- Parameters:
senderOrganizationalOid
- Your OIDuri
- URI of the communication endpointkeyStore
- path to the keystore filekeyStorePassword
- the password for the keystore filekeyStoreType
- the type of the truststore file (default: jks)
-
Destination
public Destination(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword, String trustStore, String trustStorePassword) Communication Endpoint for a TLS-secured transaction with a seperate keystore and truststore.- Parameters:
senderOrganizationalOid
- Your OIDuri
- URI of the communication endpointkeyStore
- path to the keystore filekeyStorePassword
- the password for the keystore filetrustStore
- path to the truststore filetrustStorePassword
- the password for the truststore file
-
Destination
public Destination(String senderOrganizationalOid, URI uri, String keyStore, String keyStorePassword, String keyStoreType, String trustStore, String trustStorePassword, String trustStoreType) Communication Endpoint for a TLS-secured transaction with a seperate keystore and truststore.- Parameters:
senderOrganizationalOid
- Your OIDuri
- URI of the communication endpointkeyStore
- path to the keystore filekeyStorePassword
- the password for the keystore filekeyStoreType
- the type of the keystore file (default: jks)trustStore
- path to the truststore filetrustStorePassword
- the password for the truststore filetrustStoreType
- the type of the truststore file (default: jks)
-
Destination
Clones existing Communication Endpoint- Parameters:
origin
- existing communication Endpoint
-
-
Method Details
-
getKeyStore
Gets the path to the keystore- Returns:
- path to the keystore as string
-
getKeyStorePassword
Gets the passoword for the keystore- Returns:
- password of the keystore
-
getKeyStoreType
Method to get- Returns:
- the keyStoreType
-
getReceiverApplicationOid
Gets the receiver application oid.- Returns:
- the receiver application oid
-
getReceiverFacilityOid
Gets the receiver facility oid.- Returns:
- the receiver facility oid
-
getSenderApplicationOid
Gets the sender application oid.- Returns:
- the sender application oid
-
getSenderFacilityOid
Gets the sender facility oid.- Returns:
- the sender facility oid
-
getSenderOrganizationalOid
Gets the sender Organizational OID- Returns:
- sender Organizational OID
-
getTrustStore
Gets the path to the truststore- Returns:
- path to the trust store as string
-
getTrustStorePassword
Gets the password for the trust store- Returns:
- password for the trust store as string
-
getTrustStoreType
Method to get- Returns:
- the trustStoreType
-
getUri
-
setKeyStore
Sets the path to the key store- Parameters:
keyStore
- path
-
setKeyStorePassword
Sets the password for the key store- Parameters:
keyStorePassword
- the password for your keystore
-
setKeyStoreType
Method to set- Parameters:
keyStoreType
- the keyStoreType to set
-
setReceiverApplicationOid
Sets the receiver application oid.- Parameters:
receiverApplicationOid
- the new receiver application oid
-
setReceiverFacilityOid
Sets the receiver facility oid.- Parameters:
receiverFacilityOid
- the new receiver facility oid
-
setSenderApplicationOid
Sets the sender application oid.- Parameters:
senderApplicationOid
- the new sender application oid
-
setSenderFacilityOid
Sets the sender facility oid.- Parameters:
senderFacilityOid
- the new sender facility oid
-
setSenderOrganizationalOid
-
setTrustStore
-
setTrustStorePassword
Sets the trust store password.Setzt trust store password.- Parameters:
trustStorePassword
-the new trust store passworddas neue trust store password.
-
setTrustStoreType
Method to set- Parameters:
trustStoreType
- the trustStoreType to set
-
setUri
-