@Generated(value="software.amazon.awssdk:codegen") public final class As2ConnectorConfig extends Object implements SdkPojo, Serializable, 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
As2ConnectorConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
basicAuthSecretId()
Provides Basic authentication support to the AS2 Connectors API.
|
static As2ConnectorConfig.Builder |
builder() |
CompressionEnum |
compression()
Specifies whether the AS2 file is compressed.
|
String |
compressionAsString()
Specifies whether the AS2 file is compressed.
|
EncryptionAlg |
encryptionAlgorithm()
The algorithm that is used to encrypt the file.
|
String |
encryptionAlgorithmAsString()
The algorithm that is used to encrypt the file.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
localProfileId()
A unique identifier for the AS2 local profile.
|
MdnResponse |
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.
|
String |
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.
|
MdnSigningAlg |
mdnSigningAlgorithm()
The signing algorithm for the MDN response.
|
String |
mdnSigningAlgorithmAsString()
The signing algorithm for the MDN response.
|
String |
messageSubject()
Used as the
Subject HTTP header attribute in AS2 messages that are being sent with the connector. |
String |
partnerProfileId()
A unique identifier for the partner profile for the connector.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends As2ConnectorConfig.Builder> |
serializableBuilderClass() |
SigningAlg |
signingAlgorithm()
The algorithm that is used to sign the AS2 messages sent with the connector.
|
String |
signingAlgorithmAsString()
The algorithm that is used to sign the AS2 messages sent with the connector.
|
As2ConnectorConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String localProfileId()
A unique identifier for the AS2 local profile.
public final String partnerProfileId()
A unique identifier for the partner profile for the connector.
public final String messageSubject()
Used as the Subject HTTP header attribute in AS2 messages that are being sent with the connector.
Subject HTTP header attribute in AS2 messages that are being sent with the
connector.public final CompressionEnum 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
return CompressionEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
compressionAsString().
CompressionEnumpublic final String 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
return CompressionEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
compressionAsString().
CompressionEnumpublic final EncryptionAlg encryptionAlgorithm()
The algorithm that is used to encrypt the file.
You can only specify NONE if the URL for your connector uses HTTPS. This 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 return EncryptionAlg.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from encryptionAlgorithmAsString().
You can only specify NONE if the URL for your connector uses HTTPS. This ensures that no
traffic is sent in clear text.
EncryptionAlgpublic final String encryptionAlgorithmAsString()
The algorithm that is used to encrypt the file.
You can only specify NONE if the URL for your connector uses HTTPS. This 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 return EncryptionAlg.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from encryptionAlgorithmAsString().
You can only specify NONE if the URL for your connector uses HTTPS. This ensures that no
traffic is sent in clear text.
EncryptionAlgpublic final SigningAlg 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 return SigningAlg.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
signingAlgorithmAsString().
SigningAlgpublic final String 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 return SigningAlg.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
signingAlgorithmAsString().
SigningAlgpublic final MdnSigningAlg 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 return MdnSigningAlg.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from mdnSigningAlgorithmAsString().
If set to DEFAULT (or not set at all), the value for SigningAlgorithm is used.
MdnSigningAlgpublic final String 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 return MdnSigningAlg.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from mdnSigningAlgorithmAsString().
If set to DEFAULT (or not set at all), the value for SigningAlgorithm is used.
MdnSigningAlgpublic final MdnResponse 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
return MdnResponse.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
mdnResponseAsString().
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.
MdnResponsepublic final String 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
return MdnResponse.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
mdnResponseAsString().
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.
MdnResponsepublic final String 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 and user-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=""'
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 and user-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=""'
public As2ConnectorConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<As2ConnectorConfig.Builder,As2ConnectorConfig>public static As2ConnectorConfig.Builder builder()
public static Class<? extends As2ConnectorConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.