@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSsignerAsyncClient extends AWSsignerClient implements AWSsignerAsync
AsyncHandler can be used to receive notification when
an asynchronous operation completes.
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_METRICENDPOINT_PREFIXaddProfilePermission, builder, cancelSigningProfile, describeSigningJob, getCachedResponseMetadata, getRevocationStatus, getSigningPlatform, getSigningProfile, listProfilePermissions, listSigningJobs, listSigningPlatforms, listSigningProfiles, listTagsForResource, putSigningProfile, removeProfilePermission, revokeSignature, revokeSigningProfile, signPayload, startSigningJob, tagResource, untagResource, waitersaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProfilePermission, cancelSigningProfile, describeSigningJob, getCachedResponseMetadata, getRevocationStatus, getSigningPlatform, getSigningProfile, listProfilePermissions, listSigningJobs, listSigningPlatforms, listSigningProfiles, listTagsForResource, putSigningProfile, removeProfilePermission, revokeSignature, revokeSigningProfile, signPayload, startSigningJob, tagResource, untagResource, waiterspublic static AWSsignerAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AddProfilePermissionResult> addProfilePermissionAsync(AddProfilePermissionRequest request)
AWSsignerAsyncAdds cross-account permissions to a signing profile.
addProfilePermissionAsync in interface AWSsignerAsyncpublic Future<AddProfilePermissionResult> addProfilePermissionAsync(AddProfilePermissionRequest request, AsyncHandler<AddProfilePermissionRequest,AddProfilePermissionResult> asyncHandler)
AWSsignerAsyncAdds cross-account permissions to a signing profile.
addProfilePermissionAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CancelSigningProfileResult> cancelSigningProfileAsync(CancelSigningProfileRequest request)
AWSsignerAsync
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.
cancelSigningProfileAsync in interface AWSsignerAsyncpublic Future<CancelSigningProfileResult> cancelSigningProfileAsync(CancelSigningProfileRequest request, AsyncHandler<CancelSigningProfileRequest,CancelSigningProfileResult> asyncHandler)
AWSsignerAsync
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.
cancelSigningProfileAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeSigningJobResult> describeSigningJobAsync(DescribeSigningJobRequest request)
AWSsignerAsync
Returns information about a specific code signing job. You specify the job by using the jobId value
that is returned by the StartSigningJob operation.
describeSigningJobAsync in interface AWSsignerAsyncpublic Future<DescribeSigningJobResult> describeSigningJobAsync(DescribeSigningJobRequest request, AsyncHandler<DescribeSigningJobRequest,DescribeSigningJobResult> asyncHandler)
AWSsignerAsync
Returns information about a specific code signing job. You specify the job by using the jobId value
that is returned by the StartSigningJob operation.
describeSigningJobAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetRevocationStatusResult> getRevocationStatusAsync(GetRevocationStatusRequest request)
AWSsignerAsyncRetrieves the revocation status of one or more of the signing profile, signing job, and signing certificate.
getRevocationStatusAsync in interface AWSsignerAsyncpublic Future<GetRevocationStatusResult> getRevocationStatusAsync(GetRevocationStatusRequest request, AsyncHandler<GetRevocationStatusRequest,GetRevocationStatusResult> asyncHandler)
AWSsignerAsyncRetrieves the revocation status of one or more of the signing profile, signing job, and signing certificate.
getRevocationStatusAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetSigningPlatformResult> getSigningPlatformAsync(GetSigningPlatformRequest request)
AWSsignerAsyncReturns information on a specific signing platform.
getSigningPlatformAsync in interface AWSsignerAsyncpublic Future<GetSigningPlatformResult> getSigningPlatformAsync(GetSigningPlatformRequest request, AsyncHandler<GetSigningPlatformRequest,GetSigningPlatformResult> asyncHandler)
AWSsignerAsyncReturns information on a specific signing platform.
getSigningPlatformAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetSigningProfileResult> getSigningProfileAsync(GetSigningProfileRequest request)
AWSsignerAsyncReturns information on a specific signing profile.
getSigningProfileAsync in interface AWSsignerAsyncpublic Future<GetSigningProfileResult> getSigningProfileAsync(GetSigningProfileRequest request, AsyncHandler<GetSigningProfileRequest,GetSigningProfileResult> asyncHandler)
AWSsignerAsyncReturns information on a specific signing profile.
getSigningProfileAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListProfilePermissionsResult> listProfilePermissionsAsync(ListProfilePermissionsRequest request)
AWSsignerAsyncLists the cross-account permissions associated with a signing profile.
listProfilePermissionsAsync in interface AWSsignerAsyncpublic Future<ListProfilePermissionsResult> listProfilePermissionsAsync(ListProfilePermissionsRequest request, AsyncHandler<ListProfilePermissionsRequest,ListProfilePermissionsResult> asyncHandler)
AWSsignerAsyncLists the cross-account permissions associated with a signing profile.
listProfilePermissionsAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListSigningJobsResult> listSigningJobsAsync(ListSigningJobsRequest request)
AWSsignerAsync
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.
listSigningJobsAsync in interface AWSsignerAsyncpublic Future<ListSigningJobsResult> listSigningJobsAsync(ListSigningJobsRequest request, AsyncHandler<ListSigningJobsRequest,ListSigningJobsResult> asyncHandler)
AWSsignerAsync
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.
listSigningJobsAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListSigningPlatformsResult> listSigningPlatformsAsync(ListSigningPlatformsRequest request)
AWSsignerAsync
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.
listSigningPlatformsAsync in interface AWSsignerAsyncpublic Future<ListSigningPlatformsResult> listSigningPlatformsAsync(ListSigningPlatformsRequest request, AsyncHandler<ListSigningPlatformsRequest,ListSigningPlatformsResult> asyncHandler)
AWSsignerAsync
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.
listSigningPlatformsAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListSigningProfilesResult> listSigningProfilesAsync(ListSigningProfilesRequest request)
AWSsignerAsync
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.
listSigningProfilesAsync in interface AWSsignerAsyncpublic Future<ListSigningProfilesResult> listSigningProfilesAsync(ListSigningProfilesRequest request, AsyncHandler<ListSigningProfilesRequest,ListSigningProfilesResult> asyncHandler)
AWSsignerAsync
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.
listSigningProfilesAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSsignerAsyncReturns a list of the tags associated with a signing profile resource.
listTagsForResourceAsync in interface AWSsignerAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSsignerAsyncReturns a list of the tags associated with a signing profile resource.
listTagsForResourceAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutSigningProfileResult> putSigningProfileAsync(PutSigningProfileRequest request)
AWSsignerAsyncCreates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.
putSigningProfileAsync in interface AWSsignerAsyncpublic Future<PutSigningProfileResult> putSigningProfileAsync(PutSigningProfileRequest request, AsyncHandler<PutSigningProfileRequest,PutSigningProfileResult> asyncHandler)
AWSsignerAsyncCreates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.
putSigningProfileAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RemoveProfilePermissionResult> removeProfilePermissionAsync(RemoveProfilePermissionRequest request)
AWSsignerAsyncRemoves cross-account permissions from a signing profile.
removeProfilePermissionAsync in interface AWSsignerAsyncpublic Future<RemoveProfilePermissionResult> removeProfilePermissionAsync(RemoveProfilePermissionRequest request, AsyncHandler<RemoveProfilePermissionRequest,RemoveProfilePermissionResult> asyncHandler)
AWSsignerAsyncRemoves cross-account permissions from a signing profile.
removeProfilePermissionAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RevokeSignatureResult> revokeSignatureAsync(RevokeSignatureRequest request)
AWSsignerAsyncChanges the state of a signing job to REVOKED. This indicates that the signature is no longer valid.
revokeSignatureAsync in interface AWSsignerAsyncpublic Future<RevokeSignatureResult> revokeSignatureAsync(RevokeSignatureRequest request, AsyncHandler<RevokeSignatureRequest,RevokeSignatureResult> asyncHandler)
AWSsignerAsyncChanges the state of a signing job to REVOKED. This indicates that the signature is no longer valid.
revokeSignatureAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RevokeSigningProfileResult> revokeSigningProfileAsync(RevokeSigningProfileRequest request)
AWSsignerAsyncChanges 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.
revokeSigningProfileAsync in interface AWSsignerAsyncpublic Future<RevokeSigningProfileResult> revokeSigningProfileAsync(RevokeSigningProfileRequest request, AsyncHandler<RevokeSigningProfileRequest,RevokeSigningProfileResult> asyncHandler)
AWSsignerAsyncChanges 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.
revokeSigningProfileAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<SignPayloadResult> signPayloadAsync(SignPayloadRequest request)
AWSsignerAsyncSigns a binary payload and returns a signature envelope.
signPayloadAsync in interface AWSsignerAsyncpublic Future<SignPayloadResult> signPayloadAsync(SignPayloadRequest request, AsyncHandler<SignPayloadRequest,SignPayloadResult> asyncHandler)
AWSsignerAsyncSigns a binary payload and returns a signature envelope.
signPayloadAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartSigningJobResult> startSigningJobAsync(StartSigningJobRequest request)
AWSsignerAsync
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.
startSigningJobAsync in interface AWSsignerAsyncpublic Future<StartSigningJobResult> startSigningJobAsync(StartSigningJobRequest request, AsyncHandler<StartSigningJobRequest,StartSigningJobResult> asyncHandler)
AWSsignerAsync
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.
startSigningJobAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSsignerAsyncAdds 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.
tagResourceAsync in interface AWSsignerAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSsignerAsyncAdds 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.
tagResourceAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSsignerAsyncRemoves one or more tags from a signing profile. To remove the tags, specify a list of tag keys.
untagResourceAsync in interface AWSsignerAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSsignerAsyncRemoves one or more tags from a signing profile. To remove the tags, specify a list of tag keys.
untagResourceAsync in interface AWSsignerAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSsignershutdown in class AWSsignerClient