@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSsignerClient extends AmazonWebServiceClient implements AWSsigner
AWS Signer is a fully managed code-signing service to help you ensure the trust and integrity of your code.
Signer supports the following applications:
With code signing for AWS Lambda, you can sign AWS Lambda deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch, and AWS CloudTrail. In order to sign code, you create a signing profile and then use Signer to sign Lambda zip files in S3.
With code signing for IoT, you can sign code for any IoT device that is supported by AWS. IoT code signing is available for Amazon FreeRTOS and AWS IoT Device Management, and is integrated with AWS Certificate Manager (ACM). In order to sign code, you Project, you can sign container images stored in a container registry such as Amazon Elastic Container Registry (ECR). The signatures are stored in the registry alongside the images, where they are available for verifying image authenticity and integrity.
For more information about Signer, see the AWS Signer Developer Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
AddProfilePermissionResult |
addProfilePermission(AddProfilePermissionRequest request)
Adds cross-account permissions to a signing profile.
|
static AWSsignerClientBuilder |
builder() |
CancelSigningProfileResult |
cancelSigningProfile(CancelSigningProfileRequest request)
Changes the state of an
ACTIVE signing profile to CANCELED . |
DescribeSigningJobResult |
describeSigningJob(DescribeSigningJobRequest request)
Returns information about a specific code signing job.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetRevocationStatusResult |
getRevocationStatus(GetRevocationStatusRequest request)
Retrieves the revocation status of one or more of the signing profile, signing job, and signing certificate.
|
GetSigningPlatformResult |
getSigningPlatform(GetSigningPlatformRequest request)
Returns information on a specific signing platform.
|
GetSigningProfileResult |
getSigningProfile(GetSigningProfileRequest request)
Returns information on a specific signing profile.
|
ListProfilePermissionsResult |
listProfilePermissions(ListProfilePermissionsRequest request)
Lists the cross-account permissions associated with a signing profile.
|
ListSigningJobsResult |
listSigningJobs(ListSigningJobsRequest request)
Lists all your signing jobs.
|
ListSigningPlatformsResult |
listSigningPlatforms(ListSigningPlatformsRequest request)
Lists all signing platforms available in AWS Signer that match the request parameters.
|
ListSigningProfilesResult |
listSigningProfiles(ListSigningProfilesRequest request)
Lists all available signing profiles in your AWS account.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Returns a list of the tags associated with a signing profile resource.
|
PutSigningProfileResult |
putSigningProfile(PutSigningProfileRequest request)
Creates a signing profile.
|
RemoveProfilePermissionResult |
removeProfilePermission(RemoveProfilePermissionRequest request)
Removes cross-account permissions from a signing profile.
|
RevokeSignatureResult |
revokeSignature(RevokeSignatureRequest request)
Changes the state of a signing job to REVOKED.
|
RevokeSigningProfileResult |
revokeSigningProfile(RevokeSigningProfileRequest request)
Changes the state of a signing profile to REVOKED.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
SignPayloadResult |
signPayload(SignPayloadRequest request)
Signs a binary payload and returns a signature envelope.
|
StartSigningJobResult |
startSigningJob(StartSigningJobRequest request)
Initiates a signing job to be performed on the code provided.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds one or more tags to a signing profile.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes one or more tags from a signing profile.
|
AWSsignerWaiters |
waiters() |
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSsignerClientBuilder builder()
public AddProfilePermissionResult addProfilePermission(AddProfilePermissionRequest request)
Adds cross-account permissions to a signing profile.
addProfilePermission
in interface AWSsigner
addProfilePermissionRequest
- ValidationException
- You signing certificate could not be validated.ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.ServiceLimitExceededException
- The client is making a request that exceeds service limits.ConflictException
- The resource encountered a conflicting state.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public CancelSigningProfileResult cancelSigningProfile(CancelSigningProfileRequest request)
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.
cancelSigningProfile
in interface AWSsigner
cancelSigningProfileRequest
- ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public DescribeSigningJobResult describeSigningJob(DescribeSigningJobRequest request)
Returns information about a specific code signing job. You specify the job by using the jobId
value
that is returned by the StartSigningJob operation.
describeSigningJob
in interface AWSsigner
describeSigningJobRequest
- ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public GetRevocationStatusResult getRevocationStatus(GetRevocationStatusRequest request)
Retrieves the revocation status of one or more of the signing profile, signing job, and signing certificate.
getRevocationStatus
in interface AWSsigner
getRevocationStatusRequest
- ValidationException
- You signing certificate could not be validated.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public GetSigningPlatformResult getSigningPlatform(GetSigningPlatformRequest request)
Returns information on a specific signing platform.
getSigningPlatform
in interface AWSsigner
getSigningPlatformRequest
- ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public GetSigningProfileResult getSigningProfile(GetSigningProfileRequest request)
Returns information on a specific signing profile.
getSigningProfile
in interface AWSsigner
getSigningProfileRequest
- ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public ListProfilePermissionsResult listProfilePermissions(ListProfilePermissionsRequest request)
Lists the cross-account permissions associated with a signing profile.
listProfilePermissions
in interface AWSsigner
listProfilePermissionsRequest
- ValidationException
- You signing certificate could not be validated.ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public ListSigningJobsResult listSigningJobs(ListSigningJobsRequest request)
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 Signer returns in the nextToken
parameter until all of your
signing jobs have been returned.
listSigningJobs
in interface AWSsigner
listSigningJobsRequest
- ValidationException
- You signing certificate could not be validated.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public ListSigningPlatformsResult listSigningPlatforms(ListSigningPlatformsRequest request)
Lists all signing platforms available in AWS Signer that match the request parameters. If additional jobs remain
to be listed, 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 Signer returns in the nextToken
parameter until all of your signing jobs have been returned.
listSigningPlatforms
in interface AWSsigner
listSigningPlatformsRequest
- ValidationException
- You signing certificate could not be validated.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public ListSigningProfilesResult listSigningProfiles(ListSigningProfilesRequest request)
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 Signer returns in the nextToken
parameter until all of your signing jobs have been returned.
listSigningProfiles
in interface AWSsigner
listSigningProfilesRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Returns a list of the tags associated with a signing profile resource.
listTagsForResource
in interface AWSsigner
listTagsForResourceRequest
- InternalServiceErrorException
- An internal error occurred.BadRequestException
- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a
tagging API on a cancelled signing profile.NotFoundException
- The signing profile was not found.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
public PutSigningProfileResult putSigningProfile(PutSigningProfileRequest request)
Creates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.
putSigningProfile
in interface AWSsigner
putSigningProfileRequest
- ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.ValidationException
- You signing certificate could not be validated.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public RemoveProfilePermissionResult removeProfilePermission(RemoveProfilePermissionRequest request)
Removes cross-account permissions from a signing profile.
removeProfilePermission
in interface AWSsigner
removeProfilePermissionRequest
- ValidationException
- You signing certificate could not be validated.ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.ConflictException
- The resource encountered a conflicting state.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public RevokeSignatureResult revokeSignature(RevokeSignatureRequest request)
Changes the state of a signing job to REVOKED. This indicates that the signature is no longer valid.
revokeSignature
in interface AWSsigner
revokeSignatureRequest
- ValidationException
- You signing certificate could not be validated.AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- A specified resource could not be found.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public RevokeSigningProfileResult revokeSigningProfile(RevokeSigningProfileRequest request)
Changes the state of a signing profile to REVOKED. This indicates that signatures generated using the signing profile after an effective start date are no longer valid.
revokeSigningProfile
in interface AWSsigner
revokeSigningProfileRequest
- ValidationException
- You signing certificate could not be validated.AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- A specified resource could not be found.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public SignPayloadResult signPayload(SignPayloadRequest request)
Signs a binary payload and returns a signature envelope.
signPayload
in interface AWSsigner
signPayloadRequest
- ValidationException
- You signing certificate could not be validated.ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public StartSigningJobResult startSigningJob(StartSigningJobRequest request)
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 Creating 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 ensure the S3 buckets are from the same Region as the signing profile. Cross-Region signing isn't supported.
You must also specify a request token that identifies your request to 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 StartSigningJob.
startSigningJob
in interface AWSsigner
startSigningJobRequest
- ValidationException
- You signing certificate could not be validated.ResourceNotFoundException
- A specified resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttling.
Instead of this error, TooManyRequestsException
should be used.
TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
InternalServiceErrorException
- An internal error occurred.public TagResourceResult tagResource(TagResourceRequest request)
Adds one or more tags to a signing profile. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. To specify the signing profile, use its Amazon Resource Name (ARN). To specify the tag, use a key-value pair.
tagResource
in interface AWSsigner
tagResourceRequest
- InternalServiceErrorException
- An internal error occurred.BadRequestException
- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a
tagging API on a cancelled signing profile.NotFoundException
- The signing profile was not found.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
public UntagResourceResult untagResource(UntagResourceRequest request)
Removes one or more tags from a signing profile. To remove the tags, specify a list of tag keys.
untagResource
in interface AWSsigner
untagResourceRequest
- InternalServiceErrorException
- An internal error occurred.BadRequestException
- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a
tagging API on a cancelled signing profile.NotFoundException
- The signing profile was not found.TooManyRequestsException
- The allowed number of job-signing requests has been exceeded.
This error supersedes the error ThrottlingException
.
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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 the request.
getCachedResponseMetadata
in interface AWSsigner
request
- The originally executed requestpublic AWSsignerWaiters waiters()
public void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSsigner
shutdown
in class AmazonWebServiceClient