AS2ValidationSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.logic.models.AS2ValidationSettings

Implements

public final class AS2ValidationSettings
implements JsonSerializable<AS2ValidationSettings>

The AS2 agreement validation settings.

Constructor Summary

Constructor Description
AS2ValidationSettings()

Creates an instance of AS2ValidationSettings class.

Method Summary

Modifier and Type Method and Description
boolean checkCertificateRevocationListOnReceive()

Get the checkCertificateRevocationListOnReceive property: The value indicating whether to check for certificate revocation list on receive.

boolean checkCertificateRevocationListOnSend()

Get the checkCertificateRevocationListOnSend property: The value indicating whether to check for certificate revocation list on send.

boolean checkDuplicateMessage()

Get the checkDuplicateMessage property: The value indicating whether to check for duplicate message.

boolean compressMessage()

Get the compressMessage property: The value indicating whether the message has to be compressed.

boolean encryptMessage()

Get the encryptMessage property: The value indicating whether the message has to be encrypted.

EncryptionAlgorithm encryptionAlgorithm()

Get the encryptionAlgorithm property: The encryption algorithm.

static AS2ValidationSettings fromJson(JsonReader jsonReader)

Reads an instance of AS2ValidationSettings from the JsonReader.

int interchangeDuplicatesValidityDays()

Get the interchangeDuplicatesValidityDays property: The number of days to look back for duplicate interchange.

boolean overrideMessageProperties()

Get the overrideMessageProperties property: The value indicating whether to override incoming message properties with those in agreement.

boolean signMessage()

Get the signMessage property: The value indicating whether the message has to be signed.

SigningAlgorithm signingAlgorithm()

Get the signingAlgorithm property: The signing algorithm.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AS2ValidationSettings withCheckCertificateRevocationListOnReceive(boolean checkCertificateRevocationListOnReceive)

Set the checkCertificateRevocationListOnReceive property: The value indicating whether to check for certificate revocation list on receive.

AS2ValidationSettings withCheckCertificateRevocationListOnSend(boolean checkCertificateRevocationListOnSend)

Set the checkCertificateRevocationListOnSend property: The value indicating whether to check for certificate revocation list on send.

AS2ValidationSettings withCheckDuplicateMessage(boolean checkDuplicateMessage)

Set the checkDuplicateMessage property: The value indicating whether to check for duplicate message.

AS2ValidationSettings withCompressMessage(boolean compressMessage)

Set the compressMessage property: The value indicating whether the message has to be compressed.

AS2ValidationSettings withEncryptMessage(boolean encryptMessage)

Set the encryptMessage property: The value indicating whether the message has to be encrypted.

AS2ValidationSettings withEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)

Set the encryptionAlgorithm property: The encryption algorithm.

AS2ValidationSettings withInterchangeDuplicatesValidityDays(int interchangeDuplicatesValidityDays)

Set the interchangeDuplicatesValidityDays property: The number of days to look back for duplicate interchange.

AS2ValidationSettings withOverrideMessageProperties(boolean overrideMessageProperties)

Set the overrideMessageProperties property: The value indicating whether to override incoming message properties with those in agreement.

AS2ValidationSettings withSignMessage(boolean signMessage)

Set the signMessage property: The value indicating whether the message has to be signed.

AS2ValidationSettings withSigningAlgorithm(SigningAlgorithm signingAlgorithm)

Set the signingAlgorithm property: The signing algorithm.

Methods inherited from java.lang.Object

Constructor Details

AS2ValidationSettings

public AS2ValidationSettings()

Creates an instance of AS2ValidationSettings class.

Method Details

checkCertificateRevocationListOnReceive

public boolean checkCertificateRevocationListOnReceive()

Get the checkCertificateRevocationListOnReceive property: The value indicating whether to check for certificate revocation list on receive.

Returns:

the checkCertificateRevocationListOnReceive value.

checkCertificateRevocationListOnSend

public boolean checkCertificateRevocationListOnSend()

Get the checkCertificateRevocationListOnSend property: The value indicating whether to check for certificate revocation list on send.

Returns:

the checkCertificateRevocationListOnSend value.

checkDuplicateMessage

public boolean checkDuplicateMessage()

Get the checkDuplicateMessage property: The value indicating whether to check for duplicate message.

Returns:

the checkDuplicateMessage value.

compressMessage

public boolean compressMessage()

Get the compressMessage property: The value indicating whether the message has to be compressed.

Returns:

the compressMessage value.

encryptMessage

public boolean encryptMessage()

Get the encryptMessage property: The value indicating whether the message has to be encrypted.

Returns:

the encryptMessage value.

encryptionAlgorithm

public EncryptionAlgorithm encryptionAlgorithm()

Get the encryptionAlgorithm property: The encryption algorithm.

Returns:

the encryptionAlgorithm value.

fromJson

public static AS2ValidationSettings fromJson(JsonReader jsonReader)

Reads an instance of AS2ValidationSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AS2ValidationSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

interchangeDuplicatesValidityDays

public int interchangeDuplicatesValidityDays()

Get the interchangeDuplicatesValidityDays property: The number of days to look back for duplicate interchange.

Returns:

the interchangeDuplicatesValidityDays value.

overrideMessageProperties

public boolean overrideMessageProperties()

Get the overrideMessageProperties property: The value indicating whether to override incoming message properties with those in agreement.

Returns:

the overrideMessageProperties value.

signMessage

public boolean signMessage()

Get the signMessage property: The value indicating whether the message has to be signed.

Returns:

the signMessage value.

signingAlgorithm

public SigningAlgorithm signingAlgorithm()

Get the signingAlgorithm property: The signing algorithm.

Returns:

the signingAlgorithm value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCheckCertificateRevocationListOnReceive

public AS2ValidationSettings withCheckCertificateRevocationListOnReceive(boolean checkCertificateRevocationListOnReceive)

Set the checkCertificateRevocationListOnReceive property: The value indicating whether to check for certificate revocation list on receive.

Parameters:

checkCertificateRevocationListOnReceive - the checkCertificateRevocationListOnReceive value to set.

Returns:

the AS2ValidationSettings object itself.

withCheckCertificateRevocationListOnSend

public AS2ValidationSettings withCheckCertificateRevocationListOnSend(boolean checkCertificateRevocationListOnSend)

Set the checkCertificateRevocationListOnSend property: The value indicating whether to check for certificate revocation list on send.

Parameters:

checkCertificateRevocationListOnSend - the checkCertificateRevocationListOnSend value to set.

Returns:

the AS2ValidationSettings object itself.

withCheckDuplicateMessage

public AS2ValidationSettings withCheckDuplicateMessage(boolean checkDuplicateMessage)

Set the checkDuplicateMessage property: The value indicating whether to check for duplicate message.

Parameters:

checkDuplicateMessage - the checkDuplicateMessage value to set.

Returns:

the AS2ValidationSettings object itself.

withCompressMessage

public AS2ValidationSettings withCompressMessage(boolean compressMessage)

Set the compressMessage property: The value indicating whether the message has to be compressed.

Parameters:

compressMessage - the compressMessage value to set.

Returns:

the AS2ValidationSettings object itself.

withEncryptMessage

public AS2ValidationSettings withEncryptMessage(boolean encryptMessage)

Set the encryptMessage property: The value indicating whether the message has to be encrypted.

Parameters:

encryptMessage - the encryptMessage value to set.

Returns:

the AS2ValidationSettings object itself.

withEncryptionAlgorithm

public AS2ValidationSettings withEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)

Set the encryptionAlgorithm property: The encryption algorithm.

Parameters:

encryptionAlgorithm - the encryptionAlgorithm value to set.

Returns:

the AS2ValidationSettings object itself.

withInterchangeDuplicatesValidityDays

public AS2ValidationSettings withInterchangeDuplicatesValidityDays(int interchangeDuplicatesValidityDays)

Set the interchangeDuplicatesValidityDays property: The number of days to look back for duplicate interchange.

Parameters:

interchangeDuplicatesValidityDays - the interchangeDuplicatesValidityDays value to set.

Returns:

the AS2ValidationSettings object itself.

withOverrideMessageProperties

public AS2ValidationSettings withOverrideMessageProperties(boolean overrideMessageProperties)

Set the overrideMessageProperties property: The value indicating whether to override incoming message properties with those in agreement.

Parameters:

overrideMessageProperties - the overrideMessageProperties value to set.

Returns:

the AS2ValidationSettings object itself.

withSignMessage

public AS2ValidationSettings withSignMessage(boolean signMessage)

Set the signMessage property: The value indicating whether the message has to be signed.

Parameters:

signMessage - the signMessage value to set.

Returns:

the AS2ValidationSettings object itself.

withSigningAlgorithm

public AS2ValidationSettings withSigningAlgorithm(SigningAlgorithm signingAlgorithm)

Set the signingAlgorithm property: The signing algorithm.

Parameters:

signingAlgorithm - the signingAlgorithm value to set.

Returns:

the AS2ValidationSettings object itself.

Applies to