View a markdown version of this page

Obtenir les informations d'identification de liaison de compte externes ACME - AWS Certificate Manager

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

Obtenir les informations d'identification de liaison de compte externes ACME

L’exemple suivant montre comment utiliser la fonction GetAcmeExternalAccountBindingCredentials.

package com.amazonaws.samples; import com.amazonaws.services.certificatemanager.AWSCertificateManagerClientBuilder; import com.amazonaws.services.certificatemanager.AWSCertificateManager; import com.amazonaws.services.certificatemanager.model.GetAcmeExternalAccountBindingCredentialsRequest; import com.amazonaws.services.certificatemanager.model.GetAcmeExternalAccountBindingCredentialsResult; public class AWSCertificateManagerSample { public static void main(String[] args) { AWSCertificateManager client = AWSCertificateManagerClientBuilder.defaultClient(); // Create the request. GetAcmeExternalAccountBindingCredentialsRequest req = new GetAcmeExternalAccountBindingCredentialsRequest() .withAcmeExternalAccountBindingArn("arn:aws:acm:us-east-1:123456789012:acme-endpoint/ep-example/acme-external-account-binding/eab-example"); // Get the credentials. GetAcmeExternalAccountBindingCredentialsResult result = client.getAcmeExternalAccountBindingCredentials(req); // Retrieve the key ID and MAC key from the response. System.out.println("KeyId: " + result.getKeyId()); System.out.println("MacKey: " + result.getMacKey()); } }