Class CannedSignerRequest
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.CannedSignerRequest
-
- All Implemented Interfaces:
CloudFrontSignerRequest
,ToCopyableBuilder<CannedSignerRequest.Builder,CannedSignerRequest>
@Immutable @ThreadSafe public final class CannedSignerRequest extends Object implements CloudFrontSignerRequest, ToCopyableBuilder<CannedSignerRequest.Builder,CannedSignerRequest>
Request to generate CloudFront signed URLs or signed cookies with a canned policy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CannedSignerRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CannedSignerRequest.Builder
builder()
Create a builder that can be used to create aCannedSignerRequest
boolean
equals(Object o)
Instant
expirationDate()
Returns the expiration date, after which users will no longer be able to use the signed URL/cookie to access your private contentint
hashCode()
String
keyPairId()
Returns the key pair ID, i.e., the public key ID for the CloudFront public key whose corresponding private key you're using to generate the signaturePrivateKey
privateKey()
Returns the private key used to generate the signatureString
resourceUrl()
Returns the resource URL, i.e., the unsigned URLCannedSignerRequest.Builder
toBuilder()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
builder
public static CannedSignerRequest.Builder builder()
Create a builder that can be used to create aCannedSignerRequest
-
toBuilder
public CannedSignerRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CannedSignerRequest.Builder,CannedSignerRequest>
-
resourceUrl
public String resourceUrl()
Description copied from interface:CloudFrontSignerRequest
Returns the resource URL, i.e., the unsigned URL- Specified by:
resourceUrl
in interfaceCloudFrontSignerRequest
-
privateKey
public PrivateKey privateKey()
Description copied from interface:CloudFrontSignerRequest
Returns the private key used to generate the signature- Specified by:
privateKey
in interfaceCloudFrontSignerRequest
-
keyPairId
public String keyPairId()
Description copied from interface:CloudFrontSignerRequest
Returns the key pair ID, i.e., the public key ID for the CloudFront public key whose corresponding private key you're using to generate the signature- Specified by:
keyPairId
in interfaceCloudFrontSignerRequest
-
expirationDate
public Instant expirationDate()
Description copied from interface:CloudFrontSignerRequest
Returns the expiration date, after which users will no longer be able to use the signed URL/cookie to access your private content- Specified by:
expirationDate
in interfaceCloudFrontSignerRequest
-
-