@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:48.834Z") @Stability(value=Stable) public interface PublicKeyProps extends software.amazon.jsii.JsiiSerializable
Example:
// Validating signed URLs or signed cookies with Trusted Key Groups
// public key in PEM format
String publicKey;
PublicKey pubKey = PublicKey.Builder.create(this, "MyPubKey")
.encodedKey(publicKey)
.build();
KeyGroup keyGroup = KeyGroup.Builder.create(this, "MyKeyGroup")
.items(List.of(pubKey))
.build();
Distribution.Builder.create(this, "Dist")
.defaultBehavior(BehaviorOptions.builder()
.origin(new HttpOrigin("www.example.com"))
.trustedKeyGroups(List.of(keyGroup))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
PublicKeyProps.Builder
A builder for
PublicKeyProps |
static class |
PublicKeyProps.Jsii$Proxy
An implementation for
PublicKeyProps |
| Modifier and Type | Method and Description |
|---|---|
static PublicKeyProps.Builder |
builder() |
default String |
getComment()
A comment to describe the public key.
|
String |
getEncodedKey()
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
|
default String |
getPublicKeyName()
A name to identify the public key.
|
@Stability(value=Stable) @NotNull String getEncodedKey()
The encodedKey parameter must include -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- lines.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html@Stability(value=Stable) @Nullable default String getComment()
Default: - no comment
@Stability(value=Stable) @Nullable default String getPublicKeyName()
Default: - generated from the `id`
@Stability(value=Stable) static PublicKeyProps.Builder builder()
PublicKeyProps.Builder of PublicKeyPropsCopyright © 2022. All rights reserved.