View a markdown version of this page

ACME 外部アカウントのバインディング認証情報の取得 - AWS Certificate Manager

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

ACME 外部アカウントのバインディング認証情報の取得

次の例は、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()); } }