AWS MQTT Client SDK V2 Java mit IAM -AnmeldeinformationenJava

Java-Forum
Anonymous
 AWS MQTT Client SDK V2 Java mit IAM -Anmeldeinformationen

Post by Anonymous »

Ich migriere AWS SDK für Java von V1 bis V2. Früher habe ich den Awsiotmqttclient wie
instanziiert

Code: Select all

Credentials cred = awsService.generateTempIAMCredentialsForIOT();

// AWS IAM credentials could be retrieved from AWS Cognito, STS etc.
IOTMqttClient client = new IOTMqttClient(iotEndpoint, clientId, cred.accessKeyId(),
cred.secretAccessKey(), cred.sessionToken(), this);
Der SDK-V2 scheint keine Möglichkeit zu haben, IAM-Anmeldeinformationen für MQTTClientConnection zu verwenden.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post