Package com.helger.as2lib.partner
Class CPartnershipIDs
java.lang.Object
com.helger.as2lib.partner.CPartnershipIDs
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 Summary
Modifier and TypeFieldDescriptionstatic final String
Value forPA_COMPRESSION_MODE
: compress after signstatic final String
Value forPA_COMPRESSION_MODE
: compress before signstatic final String
Requested options for returned MDNstatic final String
Fill in to request an MDN for a transactionstatic final String
URL destination for an async MDNstatic final String
URL destination for AS2 transactionsstatic final String
If set and an error occurs while processing a document, an error MDN will not be sent.static final String
Optional compression modestatic final String
Optional compression type.static final String
optional content transfer encoding value for incoming messages if not specifiedstatic final String
optional content transfer encoding value for outgoing messages.static final String
set this to override the date format used when generating message IDsstatic final String
Special attribute to disable decompression of a received message, even if the Content-Type header claims the messages is compressed.static final String
Special attribute to disable decryption of a received message, even if the Content-Type header claims the messages is encrypted.static final String
Special attribute to disable signature verification of a received message, even if the Content-Type header claims the messages is signed.static final String
Set this to the algorithm to use for encryption, checkECryptoAlgorithmCrypt
constants for values (using the value of thegetID()
method)static final String
Special attribute to force decryption of a received message, even if the Content-Type header claims the messages is not encrypted.static final String
Special attribute to force signature verification of a received message, even if the Content-Type header claims the messages is not signed.static final String
Subject sent in MDN messagesstatic final String
format to use for message-id if not defaultstatic final String
AS1 or AS2static final String
Special attribute indicating that the CMS attribute "AlgorithmProtect" will be removed.static final String
Special attribute indicating that the "old" RFC 3851 MIC algorithm names should be used (e.g.static final String
Set this to the signature digest algorithm to sign sent messages, checkECryptoAlgorithmSign
constants for values (using the value of thegetID()
method)static final String
Indicates whether the certificate used for signing should be part of the signed content (whentrue
) or not (whenfalse
).static final String
Subject sent in messagesstatic final String
Define whether a certificate passed in the signed MIME body part shall be used to verify the signature (whentrue
) or whether to always use the certificate provided in the partnership (whenfalse
).static final String
AS2 ID (sender or receiver)static final String
Email address (sender or receiver)static final String
Alias to an X509 Certificate (sender or receiver) -
Method Summary
-
Field Details
-
PID_AS2
AS2 ID (sender or receiver)- See Also:
-
PID_X509_ALIAS
Alias to an X509 Certificate (sender or receiver)- See Also:
-
PID_EMAIL
Email address (sender or receiver)- See Also:
-
PA_AS2_URL
URL destination for AS2 transactions- See Also:
-
PA_AS2_MDN_TO
Fill in to request an MDN for a transaction- See Also:
-
PA_AS2_MDN_OPTIONS
Requested options for returned MDN- See Also:
-
PA_AS2_RECEIPT_DELIVERY_OPTION
URL destination for an async MDN- See Also:
-
PA_MESSAGEID_FORMAT
format to use for message-id if not default- See Also:
-
PA_MDN_SUBJECT
Subject sent in MDN messages- See Also:
-
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
set this to override the date format used when generating message IDs- See Also:
-
PA_ENCRYPT
Set this to the algorithm to use for encryption, checkECryptoAlgorithmCrypt
constants for values (using the value of thegetID()
method)- See Also:
-
PA_SIGN
Set this to the signature digest algorithm to sign sent messages, checkECryptoAlgorithmSign
constants for values (using the value of thegetID()
method)- See Also:
-
PA_PROTOCOL
AS1 or AS2- See Also:
-
PA_SUBJECT
Subject sent in messages- See Also:
-
PA_CONTENT_TRANSFER_ENCODING_SEND
optional content transfer encoding value for outgoing messages. Legacy name.- See Also:
-
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
Optional compression type. CheckECompressionType
constants for values (using the value of thegetID()
method)- Since:
- 2.1.0
- See Also:
-
PA_COMPRESSION_MODE
Optional compression mode- Since:
- 2.1.0
- See Also:
-
COMPRESS_BEFORE_SIGNING
Value forPA_COMPRESSION_MODE
: compress before sign- Since:
- 2.1.0
- See Also:
-
COMPRESS_AFTER_SIGNING
Value forPA_COMPRESSION_MODE
: compress after sign- Since:
- 2.1.0
- See Also:
-
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 totrue
to take effect.- Since:
- 2.2.0
- See Also:
-
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 totrue
to take effect.- Since:
- 2.2.0
- See Also:
-
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 totrue
to take effect.- Since:
- 2.2.0
- See Also:
-
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 totrue
to take effect.- Since:
- 2.2.0
- See Also:
-
PA_SIGN_INCLUDE_CERT_IN_BODY_PART
Indicates whether the certificate used for signing should be part of the signed content (whentrue
) or not (whenfalse
). If not set the value of the AS2 session is used. Must be set totrue
orfalse
to take effect.- Since:
- 2.2.0
- See Also:
-
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 (whentrue
) or whether to always use the certificate provided in the partnership (whenfalse
). If not set the value of the AS2 session is used. Must be set totrue
orfalse
to take effect.- Since:
- 2.2.0
- See Also:
-
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 totrue
to take effect.- Since:
- 2.2.0
- See Also:
-
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
Special attribute indicating that the CMS attribute "AlgorithmProtect" will be removed. This is needed in compatibility with e.g. IBM Sterling. Default value isfalse
. See Issue #137.- Since:
- 4.10.1
- See Also:
-