Interface CannedSignerRequest.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CannedSignerRequest.Builder,CannedSignerRequest>
,SdkBuilder<CannedSignerRequest.Builder,CannedSignerRequest>
- Enclosing class:
- CannedSignerRequest
@NotThreadSafe public static interface CannedSignerRequest.Builder extends CopyableBuilder<CannedSignerRequest.Builder,CannedSignerRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CannedSignerRequest.Builder
expirationDate(Instant expirationDate)
Configure the expiration date of the signed URL or signed cookieCannedSignerRequest.Builder
keyPairId(String keyPairId)
Configure the ID of the key pair stored in the AWS accountCannedSignerRequest.Builder
privateKey(Path keyFile)
Configure the private key to be used to sign the policy.CannedSignerRequest.Builder
privateKey(PrivateKey privateKey)
Configure the private key to be used to sign the policy.CannedSignerRequest.Builder
resourceUrl(String resourceUrl)
Configure the resource URL to be signed-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
-
-
-
Method Detail
-
resourceUrl
CannedSignerRequest.Builder resourceUrl(String resourceUrl)
Configure the resource URL to be signedThe URL or path that uniquely identifies a resource within a distribution. For standard distributions the resource URL will be "http://" + distributionName + "/" + objectKey (may also include URL parameters. For distributions with the HTTPS required protocol, the resource URL must start with "https://"
-
privateKey
CannedSignerRequest.Builder privateKey(PrivateKey privateKey)
Configure the private key to be used to sign the policy. Takes a PrivateKey object directly
-
privateKey
CannedSignerRequest.Builder privateKey(Path keyFile) throws Exception
Configure the private key to be used to sign the policy. Takes a Path to the key file, and loads it to return a PrivateKey object- Throws:
Exception
-
keyPairId
CannedSignerRequest.Builder keyPairId(String keyPairId)
Configure the ID of the key pair stored in the AWS account
-
expirationDate
CannedSignerRequest.Builder expirationDate(Instant expirationDate)
Configure the expiration date of the signed URL or signed cookie
-
-