View a markdown version of this page

ACME 외부 계정 바인딩 자격 증명 가져오기 - AWS 인증서 관리자

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

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