Package software.amazon.awssdk.iot
Class AwsIotMqtt5ClientBuilder.MqttConnectCustomAuthConfig
- java.lang.Object
- 
- software.amazon.awssdk.iot.AwsIotMqtt5ClientBuilder.MqttConnectCustomAuthConfig
 
- 
- Enclosing class:
- AwsIotMqtt5ClientBuilder
 
 public static final class AwsIotMqtt5ClientBuilder.MqttConnectCustomAuthConfig extends Object Configuration options specific to AWS IoT Core custom authentication features. For clients constructed by an AwsIotMqtt5ClientBuilder, all parameters associated with AWS IoT custom authentication are passed via the username and password properties in the CONNECT packet.
- 
- 
Field SummaryFields Modifier and Type Field Description StringauthorizerNameName of the custom authorizer to use.byte[]passwordThe password to use with the custom authorizer.StringtokenKeyNameKey used to extract the custom authorizer token from MQTT username query-string properties.StringtokenSignatureThe digital signature of the token value in the tokenValue property.StringtokenValueAn opaque token value.StringusernameThe username to use with the custom authorizer.
 - 
Constructor SummaryConstructors Constructor Description MqttConnectCustomAuthConfig()
 
- 
- 
- 
Field Detail- 
authorizerNamepublic String authorizerName Name of the custom authorizer to use. Required if the endpoint does not have a default custom authorizer associated with it. It is strongly suggested to URL-encode this value; the SDK will not do so for you.
 - 
usernamepublic String username The username to use with the custom authorizer. Query-string elements of this property value will be unioned with the query-string elements implied by other properties in this object. For example, if you set this to:MyUsername?someKey=someValueand use authorizerName to specify the authorizer, the final username would look like:MyUsername?someKey=someValue&x-amz-customauthorizer-name=<your authorizer's name >&...
 - 
passwordpublic byte[] password The password to use with the custom authorizer. Becomes the MQTT5 CONNECT packet's password property. AWS IoT Core will base64 encode this binary data before passing it to the authorizer's lambda function.
 - 
tokenKeyNamepublic String tokenKeyName Key used to extract the custom authorizer token from MQTT username query-string properties. Required if the custom authorizer has signing enabled. It is strongly suggested to URL-encode this value; the SDK will not do so for you.
 - 
tokenValuepublic String tokenValue An opaque token value. This value must be signed by the private key associated with the custom authorizer and the result placed in the tokenSignature property. Required if the custom authorizer has signing enabled.
 - 
tokenSignaturepublic String tokenSignature The digital signature of the token value in the tokenValue property. The signature must be based on the private key associated with the custom authorizer. The signature must be base64 encoded. Required if the custom authorizer has signing enabled. It is strongly suggested to URL-encode this value; the SDK will not do so for you.
 
- 
 
-