Package software.amazon.awssdk.iot
Class AwsMqtt5Sigv4HandshakeTransformer
java.lang.Object
software.amazon.awssdk.crt.CrtResource
software.amazon.awssdk.iot.AwsMqtt5Sigv4HandshakeTransformer
- All Implemented Interfaces:
AutoCloseable,Consumer<software.amazon.awssdk.crt.mqtt5.Mqtt5WebsocketHandshakeTransformArgs>
public class AwsMqtt5Sigv4HandshakeTransformer
extends software.amazon.awssdk.crt.CrtResource
implements Consumer<software.amazon.awssdk.crt.mqtt5.Mqtt5WebsocketHandshakeTransformArgs>
A websocket handshake transformer that adds a sigv4 signature for the handshake to the request.
Required in order to connect to Aws IoT via websockets using sigv4 authentication.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
software.amazon.awssdk.crt.CrtResource.ResourceInstance -
Constructor Summary
ConstructorsConstructorDescriptionAwsMqtt5Sigv4HandshakeTransformer(software.amazon.awssdk.crt.auth.signing.AwsSigningConfig signingConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(software.amazon.awssdk.crt.mqtt5.Mqtt5WebsocketHandshakeTransformArgs handshakeArgs) Modifies the handshake request to include its sigv4 signatureMethods inherited from class software.amazon.awssdk.crt.CrtResource
addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, logNativeResources, removeReferenceTo, setDescription, waitForNoResources
-
Constructor Details
-
AwsMqtt5Sigv4HandshakeTransformer
public AwsMqtt5Sigv4HandshakeTransformer(software.amazon.awssdk.crt.auth.signing.AwsSigningConfig signingConfig) - Parameters:
signingConfig- sigv4 configuration for the signing process
-
-
Method Details
-
accept
public void accept(software.amazon.awssdk.crt.mqtt5.Mqtt5WebsocketHandshakeTransformArgs handshakeArgs) Modifies the handshake request to include its sigv4 signature
-