Package com.adaptris.aws.kms
Class AWSKMSConnection
java.lang.Object
com.adaptris.core.AdaptrisConnectionImp
com.adaptris.aws.AWSConnection
com.adaptris.aws.kms.AWSKMSConnection
- All Implemented Interfaces:
com.adaptris.aws.AWSCredentialsProviderBuilder.BuilderConfig,ClientWrapper<com.amazonaws.services.kms.AWSKMSClient>,AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent
@ComponentProfile(summary="Connection for supporting connectivity to Amazon KMS",
tag="connections,amazon,aws,kms",
since="3.10.1")
public class AWSKMSConnection
extends com.adaptris.aws.AWSConnection
implements ClientWrapper<com.amazonaws.services.kms.AWSKMSClient>
AdaptrisConnection implementation for Amazon KMS
This class directly exposes almost all the getter and setters that are available in ClientConfiguration via the
AWSConnection.getClientConfiguration() property for maximum flexibility in configuration.
The key from the client-configuration element should match the name of the underlying ClientConfiguration property;
so if you wanted to control the user-agent you would do :
<client-configuration>
<key-value-pair>
<key>UserAgent</key>
<value>My User Agent</value>
</key-value-pair>
</client-configuration>
In the adapter configuration file this class is aliased as aws-kms-connection which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.amazonaws.services.kms.AWSKMSClientprotected voidprotected com.amazonaws.services.kms.AWSKMSClientBuilderprotected voidprotected voidprotected voidprotected voidMethods inherited from class com.adaptris.aws.AWSConnection
clientConfiguration, credentialsProvider, endpointBuilder, getClientConfiguration, getCredentials, getCustomEndpoint, getRegion, getRetryPolicy, retryPolicy, setClientConfiguration, setCredentials, setCustomEndpoint, setRegion, setRetryPolicy, withClientConfiguration, withCredentialsProviderBuilder, withCustomEndpoint, withRegion, withRetryPolicyMethods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
Constructor Details
-
AWSKMSConnection
public AWSKMSConnection()
-
-
Method Details
-
prepareConnection
- Specified by:
prepareConnectionin classAdaptrisConnectionImp- Throws:
CoreException
-
initConnection
- Specified by:
initConnectionin classAdaptrisConnectionImp- Throws:
CoreException
-
startConnection
- Specified by:
startConnectionin classAdaptrisConnectionImp- Throws:
CoreException
-
stopConnection
protected void stopConnection()- Specified by:
stopConnectionin classAdaptrisConnectionImp
-
closeConnection
protected void closeConnection()- Specified by:
closeConnectionin classAdaptrisConnectionImp
-
createBuilder
- Throws:
CoreException
-
awsClient
- Specified by:
awsClientin interfaceClientWrapper<com.amazonaws.services.kms.AWSKMSClient>- Throws:
Exception
-