View a markdown version of this page

Getting ACME external account binding credentials - Amazon Certificate Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Getting ACME external account binding credentials

The following example shows how to use the GetAcmeExternalAccountBindingCredentials function.

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()); } }