AS2PartnershipData

public class AS2PartnershipData extends KVPairData

The AS2PartnershipData is

Author:Twinsen Tsang

Fields

ALG_ENCRYPT_3DES

public static final String ALG_ENCRYPT_3DES

The constant field for 3DES Encryption.

ALG_ENCRYPT_RC2

public static final String ALG_ENCRYPT_RC2

The constant field for RC2 Encryption.

ALG_MIC_MD5

public static final String ALG_MIC_MD5

The constant field for MD5 Message-Integrity-Check.

ALG_MIC_SHA1

public static final String ALG_MIC_SHA1

The constant field for SHA1 Message-Integrity-Check.

ALG_SIGN_MD5

public static final String ALG_SIGN_MD5

The constant field for MD5 Signing.

ALG_SIGN_SHA1

public static final String ALG_SIGN_SHA1

The constant field for SHA1 Signing.

PARAM_CLASS_SET

static final Class[] PARAM_CLASS_SET

PARAM_KEY_SET

public static final String[] PARAM_KEY_SET

This is the key set for XML serialization / de-serialization.

PARAM_PREFIX

public static final String PARAM_PREFIX

This is the parameters prefix for serialization / de-serialization.

Constructors

AS2PartnershipData

public AS2PartnershipData()

Default Constructor.

Methods

getAS2From

public String getAS2From()
Returns:AS2 From.

getAs2To

public String getAs2To()
Returns:AS2 To.

getEncryptAlgorithm

public String getEncryptAlgorithm()
Returns:encrpytion algorithm.

getEncryptCert

public byte[] getEncryptCert()
Returns:encryption certificate in byte array.

getMicAlgorithm

public String getMicAlgorithm()
Returns:checksum algorithm.

getPartnershipId

public String getPartnershipId()
Returns:The partnership id for this partnership.

getReceiptAddress

public String getReceiptAddress()
Returns:Get receipt address.

getRecipientAddress

public String getRecipientAddress()
Returns:Get recipient address of the message.

getRetries

public int getRetries()
Returns:retries.

getRetryInterval

public int getRetryInterval()
Returns:retry interval.

getSignAlgorithm

public String getSignAlgorithm()
Returns:signing algorithm.

getSubject

public String getSubject()
Returns:Get the subject of the message.

getVerifyCert

public byte[] getVerifyCert()
Returns:verification certificate in byte array.

isDisabled

public boolean isDisabled()
Returns:the partnership is disabled ?

isHostnameVerified

public boolean isHostnameVerified()
Returns:True if hostname is verified.

isInboundEncryptRequired

public boolean isInboundEncryptRequired()
Returns:true if inbound encryption is required.

isInboundSignRequired

public boolean isInboundSignRequired()
Returns:true if inbound signing is required.

isOutboundCompressRequired

public boolean isOutboundCompressRequired()
Returns:true if outbound compression is required.

isOutboundEncryptRequired

public boolean isOutboundEncryptRequired()
Returns:true if outbound encryption is required.

isOutboundSignRequired

public boolean isOutboundSignRequired()
Returns:True if outbound signing is required.

isReceiptRequired

public boolean isReceiptRequired()
Returns:True if receipt required.

isReceiptSignRequired

public boolean isReceiptSignRequired()
Returns:true if receipt signing is required.

isSyncReply

public boolean isSyncReply()
Returns:the message required sync reply

setAs2From

public void setAs2From(String as2From)
Parameters:
  • as2From – AS2 From.

setAs2To

public void setAs2To(String as2To)
Parameters:
  • as2To – AS2 To.

setEncryptAlgorithm

public void setEncryptAlgorithm(String encryptAlgorithm)
Parameters:
  • encryptAlgorithm – encryption algorithm.

setEncryptCert

public void setEncryptCert(byte[] encryptCert)
Parameters:
  • encryptCert – encryption certificate in byte array.

setIsDisabled

public void setIsDisabled(boolean isDisabled)

Set the partnership is enabled or not.

Parameters:
  • isDisabled – the flag whether the partnership is enabled or not.

setIsHostnameVerified

public void setIsHostnameVerified(boolean isHostnameVerified)
Parameters:
  • isHostnameVerified – true if the hostname is verified.

setIsInboundEncryptRequired

public void setIsInboundEncryptRequired(boolean isInboundEncryptRequired)
Parameters:
  • isInboundEncryptRequired – true if inbound encrpytion is required.

setIsInboundSignRequired

public void setIsInboundSignRequired(boolean isInboundSignRequired)
Parameters:
  • isInboundSignRequired – true if inbound signing is required.

setIsOutboundCompressRequired

public void setIsOutboundCompressRequired(boolean isOutboundCompressRequired)
Parameters:
  • isOutboundCompressRequired – true if outbound compression is required.

setIsOutboundEncryptRequired

public void setIsOutboundEncryptRequired(boolean isOutboundEncryptRequired)
Parameters:
  • isOutboundEncryptRequired – true if outbound encryption is required.

setIsOutboundSignRequired

public void setIsOutboundSignRequired(boolean isOutboundSignRequired)
Parameters:
  • isOutboundSignRequired – true if outbound signing is required.

setIsReceiptRequired

public void setIsReceiptRequired(boolean isReceiptRequired)
Parameters:
  • isReceiptRequired – true if receipt required.

setIsReceiptSignRequired

public void setIsReceiptSignRequired(boolean isReceiptSignRequired)
Parameters:
  • isReceiptSignRequired – true if receipt signing is required.

setIsSyncReply

public void setIsSyncReply(boolean isSyncReply)

Set the message require sync reply

Parameters:
  • isSyncReply

setMicAlgorithm

public void setMicAlgorithm(String micAlgorithm)
Parameters:
  • micAlgorithm – checksum algorithm.

setPartnershipId

public void setPartnershipId(String partnershipId)
Parameters:
  • partnershipId – The partnership id for this partnership.

setReceiptAddress

public void setReceiptAddress(String receiptAddress)
Parameters:
  • receiptAddress – the receipt address

setRecipientAddress

public void setRecipientAddress(String recipientAddress)
Parameters:
  • recipientAddress – the recipient address of the message.

setRetries

public void setRetries(int retries)
Parameters:
  • retries – Retries.

setRetryInterval

public void setRetryInterval(int retryInterval)
Parameters:
  • retryInterval – retries interval.

setSignAlgorithm

public void setSignAlgorithm(String signAlgorithm)
Parameters:
  • signAlgorithm – signing algorithm.

setSubject

public void setSubject(String subject)
Parameters:
  • subject – the subject of the message.

setVerifyCert

public void setVerifyCert(byte[] verifyCert)
Parameters:
  • verifyCert – verification certificate in byte array.