@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-25T18:29:07.395Z")
public interface PublicKeyProps
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 java.lang.String |
getComment()
A comment to describe the public key.
|
java.lang.String |
getEncodedKey()
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
|
default java.lang.String |
getPublicKeyName()
A name to identify the public key.
|
java.lang.String getEncodedKey()
The encodedKey
parameter must include -----BEGIN PUBLIC KEY-----
and -----END PUBLIC KEY-----
lines.
default java.lang.String getComment()
Default: - no comment
default java.lang.String getPublicKeyName()
Default: - generated from the `id`
static PublicKeyProps.Builder builder()
PublicKeyProps.Builder
of PublicKeyProps