Code Signing for AWS IoT
Developer Guide

GetSigningPlatform

The following example shows how to use the GetSigningPlatform operation.

import com.amazonaws.auth.profile.ProfileCredentialsProvider; import com.amazonaws.services.signer.AWSsigner; import com.amazonaws.services.signer.AWSsignerClient; import com.amazonaws.services.signer.model.GetSigningPlatformRequest; import com.amazonaws.services.signer.model.GetSigningPlatformResult; public class GetSigningPlatform { public static void main(String[] s) { final String credentialsProfile = "default"; final String codeSigningPlatformId = "AmazonFreeRTOS"; // Create a client. final AWSsigner client = AWSsignerClient.builder() .withRegion("us-west-2") .withCredentials(new ProfileCredentialsProvider(credentialsProfile)) .build(); GetSigningPlatformResult result = client.getSigningPlatform( new GetSigningPlatformRequest().withPlatformId(codeSigningPlatformId)); System.out.println("Display Name : " + result.getDisplayName()); System.out.println("Platform Id : " + result.getPlatformId()); System.out.println("Signing Configuration : " + result.getSigningConfiguration()); } }