Class CPartnershipIDs

java.lang.Object
com.helger.as2lib.partner.CPartnershipIDs

@Immutable public final class CPartnershipIDs extends Object
Partnership IDs and attribute names. The IDs (starting with PID_) are using for setSenderID/setReceiverID where as the attributes (starting with PA_) are used with setAttribute.
Author:
Philip Helger
  • Field Details

    • PID_AS2

      public static final String PID_AS2
      AS2 ID (sender or receiver)
      See Also:
    • PID_X509_ALIAS

      public static final String PID_X509_ALIAS
      Alias to an X509 Certificate (sender or receiver)
      See Also:
    • PID_EMAIL

      public static final String PID_EMAIL
      Email address (sender or receiver)
      See Also:
    • PA_AS2_URL

      public static final String PA_AS2_URL
      URL destination for AS2 transactions
      See Also:
    • PA_AS2_MDN_TO

      public static final String PA_AS2_MDN_TO
      Fill in to request an MDN for a transaction
      See Also:
    • PA_AS2_MDN_OPTIONS

      public static final String PA_AS2_MDN_OPTIONS
      Requested options for returned MDN
      See Also:
    • PA_AS2_RECEIPT_DELIVERY_OPTION

      public static final String PA_AS2_RECEIPT_DELIVERY_OPTION
      URL destination for an async MDN
      See Also:
    • PA_MESSAGEID_FORMAT

      public static final String PA_MESSAGEID_FORMAT
      format to use for message-id if not default
      See Also:
    • PA_MDN_SUBJECT

      public static final String PA_MDN_SUBJECT
      Subject sent in MDN messages
      See Also:
    • PA_BLOCK_ERROR_MDN

      public static final String PA_BLOCK_ERROR_MDN
      If set and an error occurs while processing a document, an error MDN will not be sent. This flag was made because some AS2 products don't provide email or some other external notification when an error MDN is received.
      See Also:
    • PA_DATE_FORMAT

      public static final String PA_DATE_FORMAT
      set this to override the date format used when generating message IDs
      See Also:
    • PA_ENCRYPT

      public static final String PA_ENCRYPT
      Set this to the algorithm to use for encryption, check ECryptoAlgorithmCrypt constants for values (using the value of the getID() method)
      See Also:
    • PA_SIGN

      public static final String PA_SIGN
      Set this to the signature digest algorithm to sign sent messages, check ECryptoAlgorithmSign constants for values (using the value of the getID() method)
      See Also:
    • PA_PROTOCOL

      public static final String PA_PROTOCOL
      AS1 or AS2
      See Also:
    • PA_SUBJECT

      public static final String PA_SUBJECT
      Subject sent in messages
      See Also:
    • PA_CONTENT_TRANSFER_ENCODING_SEND

      public static final String PA_CONTENT_TRANSFER_ENCODING_SEND
      optional content transfer encoding value for outgoing messages. Legacy name.
      See Also:
    • PA_CONTENT_TRANSFER_ENCODING_RECEIVE

      public static final String PA_CONTENT_TRANSFER_ENCODING_RECEIVE
      optional content transfer encoding value for incoming messages if not specified
      Since:
      2.2.0
      See Also:
    • PA_COMPRESSION_TYPE

      public static final String PA_COMPRESSION_TYPE
      Optional compression type. Check ECompressionType constants for values (using the value of the getID() method)
      Since:
      2.1.0
      See Also:
    • PA_COMPRESSION_MODE

      public static final String PA_COMPRESSION_MODE
      Optional compression mode
      Since:
      2.1.0
      See Also:
    • COMPRESS_BEFORE_SIGNING

      public static final String COMPRESS_BEFORE_SIGNING
      Value for PA_COMPRESSION_MODE: compress before sign
      Since:
      2.1.0
      See Also:
    • COMPRESS_AFTER_SIGNING

      public static final String COMPRESS_AFTER_SIGNING
      Value for PA_COMPRESSION_MODE: compress after sign
      Since:
      2.1.0
      See Also:
    • PA_FORCE_DECRYPT

      public static final String PA_FORCE_DECRYPT
      Special attribute to force decryption of a received message, even if the Content-Type header claims the messages is not encrypted. This is a work-around for non spec-compliant senders. Must be set to true to take effect.
      Since:
      2.2.0
      See Also:
    • PA_DISABLE_DECRYPT

      public static final String PA_DISABLE_DECRYPT
      Special attribute to disable decryption of a received message, even if the Content-Type header claims the messages is encrypted. This is a work-around for non spec-compliant senders. Must be set to true to take effect.
      Since:
      2.2.0
      See Also:
    • PA_FORCE_VERIFY

      public static final String PA_FORCE_VERIFY
      Special attribute to force signature verification of a received message, even if the Content-Type header claims the messages is not signed. This is a work-around for non spec-compliant senders. Must be set to true to take effect.
      Since:
      2.2.0
      See Also:
    • PA_DISABLE_VERIFY

      public static final String PA_DISABLE_VERIFY
      Special attribute to disable signature verification of a received message, even if the Content-Type header claims the messages is signed. This is a work-around for non spec-compliant senders. Must be set to true to take effect.
      Since:
      2.2.0
      See Also:
    • PA_SIGN_INCLUDE_CERT_IN_BODY_PART

      public static final String PA_SIGN_INCLUDE_CERT_IN_BODY_PART
      Indicates whether the certificate used for signing should be part of the signed content (when true) or not (when false). If not set the value of the AS2 session is used. Must be set to true or false to take effect.
      Since:
      2.2.0
      See Also:
    • PA_VERIFY_USE_CERT_IN_BODY_PART

      public static final String PA_VERIFY_USE_CERT_IN_BODY_PART
      Define whether a certificate passed in the signed MIME body part shall be used to verify the signature (when true) or whether to always use the certificate provided in the partnership (when false). If not set the value of the AS2 session is used. Must be set to true or false to take effect.
      Since:
      2.2.0
      See Also:
    • PA_DISABLE_DECOMPRESS

      public static final String PA_DISABLE_DECOMPRESS
      Special attribute to disable decompression of a received message, even if the Content-Type header claims the messages is compressed. This is a work-around for non spec-compliant senders. Must be set to true to take effect.
      Since:
      2.2.0
      See Also:
    • PA_RFC3851_MICALGS

      public static final String PA_RFC3851_MICALGS
      Special attribute indicating that the "old" RFC 3851 MIC algorithm names should be used (e.g. sha1) instead of the default RFC 5751 MIC algorithm names (e.g. sha-1 - note the dash between "sha" and "1").
      Since:
      2.2.7
      See Also:
    • PA_REMOVE_CMS_ALOGIRTHM_PROTECT

      public static final String PA_REMOVE_CMS_ALOGIRTHM_PROTECT
      Special attribute indicating that the CMS attribute "AlgorithmProtect" will be removed. This is needed in compatibility with e.g. IBM Sterling. Default value is false. See Issue #137.
      Since:
      4.10.1
      See Also: