Interface PublicKeyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PublicKeyProps.Jsii$Proxy
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forPublicKeyProps
static final class
An implementation forPublicKeyProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKeyProps.Builder
builder()
default String
A comment to describe the public key.The public key that you can use with signed URLs and signed cookies, or with field-level encryption.default String
A name to identify the public key.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEncodedKey
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.The
encodedKey
parameter must include-----BEGIN PUBLIC KEY-----
and-----END PUBLIC KEY-----
lines. -
getComment
A comment to describe the public key.Default: - no comment
-
getPublicKeyName
A name to identify the public key.Default: - generated from the `id`
-
builder
- Returns:
- a
PublicKeyProps.Builder
ofPublicKeyProps
-