Package network.oxalis.as2.model
Class As2DispositionNotificationOptions
- java.lang.Object
-
- network.oxalis.as2.model.As2DispositionNotificationOptions
-
public class As2DispositionNotificationOptions extends Object
Represents the AS2 HeaderDisposition-notifications-optionsThe following input string should yield an As2DispositionNotificationOptions with two parameters:
Disposition-notification-options: signed-receipt-protocol=required,pkcs7-signature; signed-receipt-micalg=required,sha1,md5
The two parameters are:
- signed-receipt-protocol
- signed-receipt-micalg
- Author:
- steinar Date: 17.10.13 Time: 21:08
-
-
Constructor Summary
Constructors Constructor Description As2DispositionNotificationOptions(List<network.oxalis.as2.model.As2DispositionNotificationOptions.Parameter> parameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static As2DispositionNotificationOptionsgetDefault(SMimeDigestMethod digestMethod)List<network.oxalis.as2.model.As2DispositionNotificationOptions.Parameter>getParameters()StringgetPreferredSignedReceiptMicAlgorithmName()network.oxalis.as2.model.As2DispositionNotificationOptions.ParametergetSignedReceiptMicalg()From the official AS2 spec page 22 : The "signed-receipt-micalg" parameter is a list of MIC algorithms preferred by the requester for use in signing the returned receipt.network.oxalis.as2.model.As2DispositionNotificationOptions.ParametergetSignedReceiptProtocol()StringtoString()static As2DispositionNotificationOptionsvalueOf(String s)
-
-
-
Constructor Detail
-
As2DispositionNotificationOptions
public As2DispositionNotificationOptions(List<network.oxalis.as2.model.As2DispositionNotificationOptions.Parameter> parameters)
-
-
Method Detail
-
getDefault
public static As2DispositionNotificationOptions getDefault(SMimeDigestMethod digestMethod)
-
valueOf
public static As2DispositionNotificationOptions valueOf(String s)
-
getParameters
public List<network.oxalis.as2.model.As2DispositionNotificationOptions.Parameter> getParameters()
-
getSignedReceiptMicalg
public network.oxalis.as2.model.As2DispositionNotificationOptions.Parameter getSignedReceiptMicalg()
From the official AS2 spec page 22 : The "signed-receipt-micalg" parameter is a list of MIC algorithms preferred by the requester for use in signing the returned receipt. The list of MIC algorithms SHOULD be honored by the recipient from left to right.
-
getPreferredSignedReceiptMicAlgorithmName
public String getPreferredSignedReceiptMicAlgorithmName()
- Returns:
- Use the preferred mic algorithm for signed receipt, for PEPPOL AS2 this should be "sha1"
-
getSignedReceiptProtocol
public network.oxalis.as2.model.As2DispositionNotificationOptions.Parameter getSignedReceiptProtocol()
-
-