Code Signing for AWS IoT
Developer Guide

ListSigningPlatforms

The following example shows how to use the ListSigningPlatforms 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.ListSigningPlatformsRequest; import com.amazonaws.services.signer.model.ListSigningPlatformsResult; import com.amazonaws.services.signer.model.SigningPlatform; public class ListSigningPlatforms { public static void main(String[] s) { final String credentialsProfile = "default"; // Create a client. final AWSsigner client = AWSsignerClient.builder() .withRegion("us-west-2") .withCredentials(new ProfileCredentialsProvider(credentialsProfile)) .build(); ListSigningPlatformsResult result; String nextToken = null; do { result = client.listSigningPlatforms(new ListSigningPlatformsRequest().withNextToken(null)); for (SigningPlatform platform : result.getPlatforms()) { System.out.println("Display Name : " + platform.getDisplayName()); System.out.println("Platform Id : " + platform.getPlatformId()); System.out.println("Signing Configuration : " + platform.getSigningConfiguration()); } nextToken = result.getNextToken(); } while (nextToken != null); } }