Class As2ConnectorConfig
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<As2ConnectorConfig.Builder,
As2ConnectorConfig>
Contains the details for an AS2 connector object. The connector object is used for AS2 outbound processes, to connect the Transfer Family customer with the trading partner.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Provides Basic authentication support to the AS2 Connectors API.static As2ConnectorConfig.Builder
builder()
final CompressionEnum
Specifies whether the AS2 file is compressed.final String
Specifies whether the AS2 file is compressed.final EncryptionAlg
The algorithm that is used to encrypt the file.final String
The algorithm that is used to encrypt the file.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
A unique identifier for the AS2 local profile.final MdnResponse
Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous.final String
Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous.final MdnSigningAlg
The signing algorithm for the MDN response.final String
The signing algorithm for the MDN response.final String
Used as theSubject
HTTP header attribute in AS2 messages that are being sent with the connector.final String
A unique identifier for the partner profile for the connector.static Class
<? extends As2ConnectorConfig.Builder> final SigningAlg
The algorithm that is used to sign the AS2 messages sent with the connector.final String
The algorithm that is used to sign the AS2 messages sent with the connector.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
localProfileId
A unique identifier for the AS2 local profile.
- Returns:
- A unique identifier for the AS2 local profile.
-
partnerProfileId
A unique identifier for the partner profile for the connector.
- Returns:
- A unique identifier for the partner profile for the connector.
-
messageSubject
Used as the
Subject
HTTP header attribute in AS2 messages that are being sent with the connector.- Returns:
- Used as the
Subject
HTTP header attribute in AS2 messages that are being sent with the connector.
-
compression
Specifies whether the AS2 file is compressed.
If the service returns an enum value that is not available in the current SDK version,
compression
will returnCompressionEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcompressionAsString()
.- Returns:
- Specifies whether the AS2 file is compressed.
- See Also:
-
compressionAsString
Specifies whether the AS2 file is compressed.
If the service returns an enum value that is not available in the current SDK version,
compression
will returnCompressionEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcompressionAsString()
.- Returns:
- Specifies whether the AS2 file is compressed.
- See Also:
-
encryptionAlgorithm
The algorithm that is used to encrypt the file.
Note the following:
-
Do not use the
DES_EDE3_CBC
algorithm unless you must support a legacy client that requires it, as it is a weak encryption algorithm. -
You can only specify
NONE
if the URL for your connector uses HTTPS. Using HTTPS ensures that no traffic is sent in clear text.
If the service returns an enum value that is not available in the current SDK version,
encryptionAlgorithm
will returnEncryptionAlg.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromencryptionAlgorithmAsString()
.- Returns:
- The algorithm that is used to encrypt the file.
Note the following:
-
Do not use the
DES_EDE3_CBC
algorithm unless you must support a legacy client that requires it, as it is a weak encryption algorithm. -
You can only specify
NONE
if the URL for your connector uses HTTPS. Using HTTPS ensures that no traffic is sent in clear text.
-
- See Also:
-
-
encryptionAlgorithmAsString
The algorithm that is used to encrypt the file.
Note the following:
-
Do not use the
DES_EDE3_CBC
algorithm unless you must support a legacy client that requires it, as it is a weak encryption algorithm. -
You can only specify
NONE
if the URL for your connector uses HTTPS. Using HTTPS ensures that no traffic is sent in clear text.
If the service returns an enum value that is not available in the current SDK version,
encryptionAlgorithm
will returnEncryptionAlg.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromencryptionAlgorithmAsString()
.- Returns:
- The algorithm that is used to encrypt the file.
Note the following:
-
Do not use the
DES_EDE3_CBC
algorithm unless you must support a legacy client that requires it, as it is a weak encryption algorithm. -
You can only specify
NONE
if the URL for your connector uses HTTPS. Using HTTPS ensures that no traffic is sent in clear text.
-
- See Also:
-
-
signingAlgorithm
The algorithm that is used to sign the AS2 messages sent with the connector.
If the service returns an enum value that is not available in the current SDK version,
signingAlgorithm
will returnSigningAlg.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsigningAlgorithmAsString()
.- Returns:
- The algorithm that is used to sign the AS2 messages sent with the connector.
- See Also:
-
signingAlgorithmAsString
The algorithm that is used to sign the AS2 messages sent with the connector.
If the service returns an enum value that is not available in the current SDK version,
signingAlgorithm
will returnSigningAlg.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsigningAlgorithmAsString()
.- Returns:
- The algorithm that is used to sign the AS2 messages sent with the connector.
- See Also:
-
mdnSigningAlgorithm
The signing algorithm for the MDN response.
If set to DEFAULT (or not set at all), the value for
SigningAlgorithm
is used.If the service returns an enum value that is not available in the current SDK version,
mdnSigningAlgorithm
will returnMdnSigningAlg.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommdnSigningAlgorithmAsString()
.- Returns:
- The signing algorithm for the MDN response.
If set to DEFAULT (or not set at all), the value for
SigningAlgorithm
is used. - See Also:
-
mdnSigningAlgorithmAsString
The signing algorithm for the MDN response.
If set to DEFAULT (or not set at all), the value for
SigningAlgorithm
is used.If the service returns an enum value that is not available in the current SDK version,
mdnSigningAlgorithm
will returnMdnSigningAlg.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommdnSigningAlgorithmAsString()
.- Returns:
- The signing algorithm for the MDN response.
If set to DEFAULT (or not set at all), the value for
SigningAlgorithm
is used. - See Also:
-
mdnResponse
Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values:
-
SYNC
: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not). -
NONE
: Specifies that no MDN response is required.
If the service returns an enum value that is not available in the current SDK version,
mdnResponse
will returnMdnResponse.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommdnResponseAsString()
.- Returns:
- Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether
the partner response for transfers is synchronous or asynchronous. Specify either of the following
values:
-
SYNC
: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not). -
NONE
: Specifies that no MDN response is required.
-
- See Also:
-
-
mdnResponseAsString
Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values:
-
SYNC
: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not). -
NONE
: Specifies that no MDN response is required.
If the service returns an enum value that is not available in the current SDK version,
mdnResponse
will returnMdnResponse.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommdnResponseAsString()
.- Returns:
- Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether
the partner response for transfers is synchronous or asynchronous. Specify either of the following
values:
-
SYNC
: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not). -
NONE
: Specifies that no MDN response is required.
-
- See Also:
-
-
basicAuthSecretId
Provides Basic authentication support to the AS2 Connectors API. To use Basic authentication, you must provide the name or Amazon Resource Name (ARN) of a secret in Secrets Manager.
The default value for this parameter is
null
, which indicates that Basic authentication is not enabled for the connector.If the connector should use Basic authentication, the secret needs to be in the following format:
{ "Username": "user-name", "Password": "user-password" }
Replace
user-name
anduser-password
with the credentials for the actual user that is being authenticated.Note the following:
-
You are storing these credentials in Secrets Manager, not passing them directly into this API.
-
If you are using the API, SDKs, or CloudFormation to configure your connector, then you must create the secret before you can enable Basic authentication. However, if you are using the Amazon Web Services management console, you can have the system create the secret for you.
If you have previously enabled Basic authentication for a connector, you can disable it by using the
UpdateConnector
API call. For example, if you are using the CLI, you can run the following command to remove Basic authentication:update-connector --connector-id my-connector-id --as2-config 'BasicAuthSecretId=""'
- Returns:
- Provides Basic authentication support to the AS2 Connectors API. To use Basic authentication, you must
provide the name or Amazon Resource Name (ARN) of a secret in Secrets Manager.
The default value for this parameter is
null
, which indicates that Basic authentication is not enabled for the connector.If the connector should use Basic authentication, the secret needs to be in the following format:
{ "Username": "user-name", "Password": "user-password" }
Replace
user-name
anduser-password
with the credentials for the actual user that is being authenticated.Note the following:
-
You are storing these credentials in Secrets Manager, not passing them directly into this API.
-
If you are using the API, SDKs, or CloudFormation to configure your connector, then you must create the secret before you can enable Basic authentication. However, if you are using the Amazon Web Services management console, you can have the system create the secret for you.
If you have previously enabled Basic authentication for a connector, you can disable it by using the
UpdateConnector
API call. For example, if you are using the CLI, you can run the following command to remove Basic authentication:update-connector --connector-id my-connector-id --as2-config 'BasicAuthSecretId=""'
-
-
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<As2ConnectorConfig.Builder,
As2ConnectorConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-