All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.signer.AWSsigner Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Signer module holds the client classes that are used for communicating with AWS Signer Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.signer;

import javax.annotation.Generated;

import com.amazonaws.*;
import com.amazonaws.regions.*;

import com.amazonaws.services.signer.model.*;
import com.amazonaws.services.signer.waiters.AWSsignerWaiters;

/**
 * Interface for accessing signer.
 * 

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.signer.AbstractAWSsigner} instead. *

*

*

* You can use Code Signing for Amazon FreeRTOS (AWS Signer) to sign code that you created for any of the IoT devices * that Amazon Web Services supports. AWS Signer is integrated with Amazon FreeRTOS, AWS Certificate Manager, and AWS * CloudTrail. Amazon FreeRTOS customers can use AWS Signer to sign code images before making them available for * microcontrollers. You can use ACM to import third-party certificates to be used by AWS Signer. For general * information about using AWS Signer, see the Code Signing for Amazon FreeRTOS * Developer Guide. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AWSsigner { /** * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata * (such as supported regions) of the service. * * @see RegionUtils#getRegionsForService(String) */ String ENDPOINT_PREFIX = "signer"; /** *

* Changes the state of an ACTIVE signing profile to CANCELED. A canceled profile is still * viewable with the ListSigningProfiles operation, but it cannot perform new signing jobs, and is * deleted two years after cancelation. *

* * @param cancelSigningProfileRequest * @return Result of the CancelSigningProfile operation returned by the service. * @throws ResourceNotFoundException * A specified resource could not be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The signing job has been throttled. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.CancelSigningProfile * @see AWS * API Documentation */ CancelSigningProfileResult cancelSigningProfile(CancelSigningProfileRequest cancelSigningProfileRequest); /** *

* Returns information about a specific code signing job. You specify the job by using the jobId value * that is returned by the StartSigningJob operation. *

* * @param describeSigningJobRequest * @return Result of the DescribeSigningJob operation returned by the service. * @throws ResourceNotFoundException * A specified resource could not be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.DescribeSigningJob * @see AWS API * Documentation */ DescribeSigningJobResult describeSigningJob(DescribeSigningJobRequest describeSigningJobRequest); /** *

* Returns information on a specific signing platform. *

* * @param getSigningPlatformRequest * @return Result of the GetSigningPlatform operation returned by the service. * @throws ResourceNotFoundException * A specified resource could not be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.GetSigningPlatform * @see AWS API * Documentation */ GetSigningPlatformResult getSigningPlatform(GetSigningPlatformRequest getSigningPlatformRequest); /** *

* Returns information on a specific signing profile. *

* * @param getSigningProfileRequest * @return Result of the GetSigningProfile operation returned by the service. * @throws ResourceNotFoundException * A specified resource could not be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The signing job has been throttled. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.GetSigningProfile * @see AWS API * Documentation */ GetSigningProfileResult getSigningProfile(GetSigningProfileRequest getSigningProfileRequest); /** *

* Lists all your signing jobs. You can use the maxResults parameter to limit the number of signing * jobs that are returned in the response. If additional jobs remain to be listed, AWS Signer returns a * nextToken value. Use this value in subsequent calls to ListSigningJobs to fetch the * remaining values. You can continue calling ListSigningJobs with your maxResults * parameter and with new values that AWS Signer returns in the nextToken parameter until all of your * signing jobs have been returned. *

* * @param listSigningJobsRequest * @return Result of the ListSigningJobs operation returned by the service. * @throws ValidationException * You signing certificate could not be validated. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The signing job has been throttled. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.ListSigningJobs * @see AWS API * Documentation */ ListSigningJobsResult listSigningJobs(ListSigningJobsRequest listSigningJobsRequest); /** *

* Lists all signing platforms available in AWS Signer that match the request parameters. If additional jobs remain * to be listed, AWS Signer returns a nextToken value. Use this value in subsequent calls to * ListSigningJobs to fetch the remaining values. You can continue calling ListSigningJobs * with your maxResults parameter and with new values that AWS Signer returns in the * nextToken parameter until all of your signing jobs have been returned. *

* * @param listSigningPlatformsRequest * @return Result of the ListSigningPlatforms operation returned by the service. * @throws ValidationException * You signing certificate could not be validated. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The signing job has been throttled. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.ListSigningPlatforms * @see AWS * API Documentation */ ListSigningPlatformsResult listSigningPlatforms(ListSigningPlatformsRequest listSigningPlatformsRequest); /** *

* Lists all available signing profiles in your AWS account. Returns only profiles with an ACTIVE * status unless the includeCanceled request field is set to true. If additional jobs * remain to be listed, AWS Signer returns a nextToken value. Use this value in subsequent calls to * ListSigningJobs to fetch the remaining values. You can continue calling ListSigningJobs * with your maxResults parameter and with new values that AWS Signer returns in the * nextToken parameter until all of your signing jobs have been returned. *

* * @param listSigningProfilesRequest * @return Result of the ListSigningProfiles operation returned by the service. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The signing job has been throttled. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.ListSigningProfiles * @see AWS API * Documentation */ ListSigningProfilesResult listSigningProfiles(ListSigningProfilesRequest listSigningProfilesRequest); /** *

* Creates a signing profile. A signing profile is an AWS Signer template that can be used to carry out a * pre-defined signing job. For more information, see http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html *

* * @param putSigningProfileRequest * @return Result of the PutSigningProfile operation returned by the service. * @throws ResourceNotFoundException * A specified resource could not be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ValidationException * You signing certificate could not be validated. * @throws ThrottlingException * The signing job has been throttled. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.PutSigningProfile * @see AWS API * Documentation */ PutSigningProfileResult putSigningProfile(PutSigningProfileRequest putSigningProfileRequest); /** *

* Initiates a signing job to be performed on the code provided. Signing jobs are viewable by the * ListSigningJobs operation for two years after they are performed. Note the following requirements: *

*
    *
  • *

    * You must create an Amazon S3 source bucket. For more information, see Create a Bucket in the Amazon * S3 Getting Started Guide. *

    *
  • *
  • *

    * Your S3 source bucket must be version enabled. *

    *
  • *
  • *

    * You must create an S3 destination bucket. AWS Signer uses your S3 destination bucket to write your signed code. *

    *
  • *
  • *

    * You specify the name of the source and destination buckets when calling the StartSigningJob * operation. *

    *
  • *
  • *

    * You must also specify a request token that identifies your request to AWS Signer. *

    *
  • *
*

* You can call the DescribeSigningJob and the ListSigningJobs actions after you call * StartSigningJob. *

*

* For a Java example that shows how to use this action, see http://docs.aws.amazon.com/acm/latest/userguide/ *

* * @param startSigningJobRequest * @return Result of the StartSigningJob operation returned by the service. * @throws ValidationException * You signing certificate could not be validated. * @throws ResourceNotFoundException * A specified resource could not be found. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The signing job has been throttled. * @throws InternalServiceErrorException * An internal error occurred. * @sample AWSsigner.StartSigningJob * @see AWS API * Documentation */ StartSigningJobResult startSigningJob(StartSigningJobRequest startSigningJobRequest); /** * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client * has been shutdown, it should not be used to make any more requests. */ void shutdown(); /** * Returns additional metadata for a previously executed successful request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing a request. * * @param request * The originally executed request. * * @return The response metadata for the specified request, or null if none is available. */ ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request); AWSsignerWaiters waiters(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy