Class Destination

java.lang.Object
org.projecthusky.common.communication.Destination

public class Destination extends Object
The Class Destination. Describes an Endpoint for a transmission or communication.
  • Constructor Details

    • Destination

      public Destination()
      Communication Endpoint for any transaction.
    • Destination

      public Destination(String senderOrganizationalOid, URI uri)
      Communication Endpoint for an unsecured transaction.
      Parameters:
      senderOrganizationalOid - Oid of the Sender Organization
      uri - 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 OID
      uri - URI of the communication endpoint
      keyStore - path to the keystore file
      keyStorePassword - 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 OID
      uri - URI of the communication endpoint
      keyStore - path to the keystore file
      keyStorePassword - the password for the keystore file
      keyStoreType - 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 OID
      uri - URI of the communication endpoint
      keyStore - path to the keystore file
      keyStorePassword - the password for the keystore file
      trustStore - path to the truststore file
      trustStorePassword - 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 OID
      uri - URI of the communication endpoint
      keyStore - path to the keystore file
      keyStorePassword - the password for the keystore file
      keyStoreType - the type of the keystore file (default: jks)
      trustStore - path to the truststore file
      trustStorePassword - the password for the truststore file
      trustStoreType - the type of the truststore file (default: jks)
    • Destination

      public Destination(Destination origin)
      Clones existing Communication Endpoint
      Parameters:
      origin - existing communication Endpoint
  • Method Details

    • getKeyStore

      public String getKeyStore()
      Gets the path to the keystore
      Returns:
      path to the keystore as string
    • getKeyStorePassword

      public String getKeyStorePassword()
      Gets the passoword for the keystore
      Returns:
      password of the keystore
    • getKeyStoreType

      public String getKeyStoreType()
      Method to get
      Returns:
      the keyStoreType
    • getReceiverApplicationOid

      public String getReceiverApplicationOid()
      Gets the receiver application oid.
      Returns:
      the receiver application oid
    • getReceiverFacilityOid

      public String getReceiverFacilityOid()
      Gets the receiver facility oid.
      Returns:
      the receiver facility oid
    • getSenderApplicationOid

      public String getSenderApplicationOid()
      Gets the sender application oid.
      Returns:
      the sender application oid
    • getSenderFacilityOid

      public String getSenderFacilityOid()
      Gets the sender facility oid.
      Returns:
      the sender facility oid
    • getSenderOrganizationalOid

      public String getSenderOrganizationalOid()
      Gets the sender Organizational OID
      Returns:
      sender Organizational OID
    • getTrustStore

      public String getTrustStore()
      Gets the path to the truststore
      Returns:
      path to the trust store as string
    • getTrustStorePassword

      public String getTrustStorePassword()
      Gets the password for the trust store
      Returns:
      password for the trust store as string
    • getTrustStoreType

      public String getTrustStoreType()
      Method to get
      Returns:
      the trustStoreType
    • getUri

      public URI getUri()
    • setKeyStore

      public void setKeyStore(String keyStore)
      Sets the path to the key store
      Parameters:
      keyStore - path
    • setKeyStorePassword

      public void setKeyStorePassword(String keyStorePassword)
      Sets the password for the key store
      Parameters:
      keyStorePassword - the password for your keystore
    • setKeyStoreType

      public void setKeyStoreType(String keyStoreType)
      Method to set
      Parameters:
      keyStoreType - the keyStoreType to set
    • setReceiverApplicationOid

      public void setReceiverApplicationOid(String receiverApplicationOid)
      Sets the receiver application oid.
      Parameters:
      receiverApplicationOid - the new receiver application oid
    • setReceiverFacilityOid

      public void setReceiverFacilityOid(String receiverFacilityOid)
      Sets the receiver facility oid.
      Parameters:
      receiverFacilityOid - the new receiver facility oid
    • setSenderApplicationOid

      public void setSenderApplicationOid(String senderApplicationOid)
      Sets the sender application oid.
      Parameters:
      senderApplicationOid - the new sender application oid
    • setSenderFacilityOid

      public void setSenderFacilityOid(String senderFacilityOid)
      Sets the sender facility oid.
      Parameters:
      senderFacilityOid - the new sender facility oid
    • setSenderOrganizationalOid

      public void setSenderOrganizationalOid(String senderOrganizationalOid)
    • setTrustStore

      public void setTrustStore(String trustStore)
    • setTrustStorePassword

      public void setTrustStorePassword(String trustStorePassword)
      Sets the trust store password.
      Setzt trust store password.
      Parameters:
      trustStorePassword -
      the new trust store password
      das neue trust store password.
    • setTrustStoreType

      public void setTrustStoreType(String trustStoreType)
      Method to set
      Parameters:
      trustStoreType - the trustStoreType to set
    • setUri

      public void setUri(URI uri)