feat(ses): add DKIM actions with domain-inherited email DKIM (#1904)

* feat(ses): add DKIM actions with domain-inherited email DKIM

Adds three DKIM actions and aligns DKIM status with AWS:

- v1 SetIdentityDkimEnabled: toggles the signing flag only (unknown identity ->
  InvalidParameterValue).
- v1 VerifyDomainDkim: returns a domain's three DKIM CNAME tokens (stable across
  calls), registering the domain as pending if absent.
- v2 PutEmailIdentityDkimSigningAttributes (PUT .../dkim/signing): sets the
  signing origin (AWS_SES Easy DKIM, regenerating tokens when the key length
  changes; EXTERNAL BYODKIM), returning DkimStatus + DkimTokens.

DkimVerificationStatus now tracks DNS record detection (via the Route53 lookup
in refreshIdentityState) rather than the enabled flag, so setDkimAttributes no
longer forces the status; the v1-native InvalidParameterValue is remapped to
BadRequestException on the v2 path. An email identity inherits its parent
domain's DKIM (SigningEnabled/Status/Tokens), matching AWS. Adds the
SigningAttributesOrigin / signing key length / last-key-generation fields to the
DkimAttributes response (LastKeyGenerationTimestamp is emitted as epoch seconds,
matching the SES v2 wire format).

Includes an AWS Java SDK compatibility test that exercises all three actions and
the email-inherits-domain behavior end-to-end.

* fix(ses): decouple DKIM status from signing flag and reject DKIM signing on email identities

- refreshIdentityState no longer gates the DkimVerificationStatus -> Success
  transition on isDkimEnabled(), so a domain with the expected CNAMEs reaches
  Success even when DKIM signing is disabled (status tracks DNS detection).
- putDkimSigningAttributes now rejects an email-address identity with
  BadRequestException ("The EmailIdentity value must be a valid domain."),
  matching real AWS — previously it mutated state the email would just inherit
  back from its parent domain on every read.

* fix(ses): report domain DKIM as NotStarted on create, Pending on read

CreateEmailIdentity now returns DkimAttributes.Status=NOT_STARTED for a new
domain (SES has not begun tracking the CNAMEs yet); the first GetEmailIdentity
/ ListEmailIdentities refresh transitions it to PENDING, matching AWS. The
signing-enabled flag no longer gates the NotStarted->Pending transition, so a
disabled domain still reports PENDING on read.

* fix(ses): reject blank identity on PutEmailIdentityDkimSigningAttributes with a 400

A blank or whitespace EmailIdentity fell through to a NotFoundException (404) instead
of the validation error AWS returns. AWS rejects a missing/blank value with the same
400 "The EmailIdentity value must be a valid domain." as an email-shaped identity
(verified), so extend the guard to also cover null/blank.

* docs(ses): clarify DKIM inheritance is from the exact parent domain

An email inherits DKIM only from an exactly-matching registered parent domain, not from a
verified ancestor — a verified example.com does not cover user@mail.example.com unless
mail.example.com is itself registered (verified against AWS). Note this in the DKIM
paragraph so "parent domain identity when one is registered" isn't read as ancestor coverage.
This commit is contained in:
Kenshin Okinaka authored and GitHub committed 2026-08-15 09:26:37 -04:00
1 parent 5afb60d0f5
commit ff0201a13a
10 files changed
+739 -47

No files matched your search

@@ -392,6 +392,8 @@ public class AwsQueryController {
"GetAccountSendingEnabled", "ListVerifiedEmailAddresses", "DeleteVerifiedEmailAddress",
"SetIdentityNotificationTopic", "GetIdentityNotificationAttributes",
"SetIdentityFeedbackForwardingEnabled",
"SetIdentityDkimEnabled",
"VerifyDomainDkim",
"SetIdentityHeadersInNotificationsEnabled",
"SetIdentityMailFromDomain", "GetIdentityMailFromDomainAttributes",
"GetIdentityDkimAttributes",
@@ -150,7 +150,7 @@ public class SesController {
result.put("IdentityType", toV2IdentityType(identity.getIdentityType()));
result.put("VerifiedForSendingStatus",
"Success".equals(identity.getVerificationStatus()));
result.set("DkimAttributes", buildDkimAttributes(identity));
result.set("DkimAttributes", buildDkimAttributes(identity, region));
LOG.infov("SES V2 CreateEmailIdentity: {0}", emailIdentity);
return Response.ok(result).build();
@@ -199,7 +199,7 @@ public class SesController {
throw new AwsException("NotFoundException",
"Identity " + emailIdentity + " does not exist.", 404);
}
return Response.ok(buildFullIdentityResponse(identity)).build();
return Response.ok(buildFullIdentityResponse(identity, region)).build();
}
@DELETE
@@ -320,6 +320,50 @@ public class SesController {
}
}
@PUT
@Path("/identities/{emailIdentity}/dkim/signing")
public Response putEmailIdentityDkimSigningAttributes(@Context HttpHeaders headers,
@PathParam("emailIdentity") String emailIdentity,
String body) {
String region = regionResolver.resolveRegion(headers);
try {
JsonNode request = (body == null || body.isBlank())
? objectMapper.createObjectNode() : objectMapper.readTree(body);
requireJsonObject(request);
String origin = request.path("SigningAttributesOrigin").asText(null);
if (!"AWS_SES".equals(origin) && !"EXTERNAL".equals(origin)) {
throw new AwsException("BadRequestException",
"SigningAttributesOrigin must be AWS_SES or EXTERNAL.", 400);
}
JsonNode attrs = requireObjectOrAbsent(request, "SigningAttributes");
String selector = attrs.path("DomainSigningSelector").asText(null);
String nextKeyLength = attrs.path("NextSigningKeyLength").asText(null);
if (nextKeyLength != null
&& !"RSA_1024_BIT".equals(nextKeyLength) && !"RSA_2048_BIT".equals(nextKeyLength)) {
throw new AwsException("BadRequestException",
"NextSigningKeyLength must be RSA_1024_BIT or RSA_2048_BIT.", 400);
}
String privateKey = attrs.path("DomainSigningPrivateKey").asText(null);
if ("EXTERNAL".equals(origin)
&& (selector == null || selector.isBlank()
|| privateKey == null || privateKey.isBlank())) {
throw new AwsException("BadRequestException",
"EXTERNAL origin requires DomainSigningSelector and DomainSigningPrivateKey.", 400);
}
SesService.DkimSigningResult result = sesService.putDkimSigningAttributes(
emailIdentity, origin, selector, nextKeyLength, region);
ObjectNode out = objectMapper.createObjectNode();
out.put("DkimStatus", toV2Status(result.dkimStatus()));
ArrayNode tokens = out.putArray("DkimTokens");
result.dkimTokens().forEach(tokens::add);
return Response.ok(out).build();
} catch (AwsException e) {
throw remapV1Exception(e);
} catch (Exception e) {
throw new AwsException("BadRequestException", e.getMessage(), 400);
}
}
// ────────────────── Identity MAIL FROM ──────────────────────────
@PUT
@@ -2105,7 +2149,7 @@ public class SesController {
// ──────────────────────────── Helpers ────────────────────────────
private ObjectNode buildFullIdentityResponse(Identity identity) {
private ObjectNode buildFullIdentityResponse(Identity identity, String region) {
ObjectNode result = objectMapper.createObjectNode();
result.put("IdentityType", toV2IdentityType(identity.getIdentityType()));
result.put("VerifiedForSendingStatus",
@@ -2113,7 +2157,7 @@ public class SesController {
result.put("VerificationStatus", toV2Status(identity.getVerificationStatus()));
result.put("FeedbackForwardingStatus", identity.isFeedbackForwardingEnabled());
result.set("DkimAttributes", buildDkimAttributes(identity));
result.set("DkimAttributes", buildDkimAttributes(identity, region));
ObjectNode mailFromAttributes = result.putObject("MailFromAttributes");
mailFromAttributes.put("BehaviorOnMxFailure", v1BehaviorToV2(identity.getBehaviorOnMxFailure()));
@@ -2161,16 +2205,28 @@ public class SesController {
+ "constraint: Member must satisfy enum value set: [REJECT_MESSAGE, USE_DEFAULT_VALUE]", 400);
}
private ObjectNode buildDkimAttributes(Identity identity) {
private ObjectNode buildDkimAttributes(Identity identity, String region) {
// An email identity reports its parent domain's DKIM (SigningEnabled / Status / Tokens all
// inherit from the domain), matching AWS; a domain reports its own.
Identity src = sesService.effectiveDkimSource(identity, region);
ObjectNode dkim = objectMapper.createObjectNode();
dkim.put("SigningEnabled", identity.isDkimEnabled());
dkim.put("Status", toV2Status(identity.getDkimVerificationStatus()));
dkim.put("SigningEnabled", src.isDkimEnabled());
dkim.put("Status", toV2Status(src.getDkimVerificationStatus()));
ArrayNode tokens = dkim.putArray("Tokens");
if (identity.getDkimTokens() != null) {
for (String token : identity.getDkimTokens()) {
if (src.getDkimTokens() != null) {
for (String token : src.getDkimTokens()) {
tokens.add(token);
}
}
dkim.put("SigningAttributesOrigin", src.getDkimSigningAttributesOrigin());
dkim.put("NextSigningKeyLength", src.getDkimNextSigningKeyLength());
dkim.put("CurrentSigningKeyLength", src.getDkimCurrentSigningKeyLength());
if (src.getDkimLastKeyGenerationTimestamp() != null) {
// SES v2 (restJson1) serializes this timestamp as epoch seconds (a number); emitting an
// ISO string breaks the SDK's unixTimestamp unmarshaller.
dkim.put("LastKeyGenerationTimestamp",
src.getDkimLastKeyGenerationTimestamp().toEpochMilli() / 1000.0);
}
return dkim;
}
@@ -71,6 +71,8 @@ public class SesQueryHandler {
case "SetIdentityNotificationTopic" -> handleSetIdentityNotificationTopic(params, region);
case "GetIdentityNotificationAttributes" -> handleGetIdentityNotificationAttributes(params, region);
case "SetIdentityFeedbackForwardingEnabled" -> handleSetIdentityFeedbackForwardingEnabled(params, region);
case "SetIdentityDkimEnabled" -> handleSetIdentityDkimEnabled(params, region);
case "VerifyDomainDkim" -> handleVerifyDomainDkim(params, region);
case "SetIdentityHeadersInNotificationsEnabled" -> handleSetIdentityHeadersInNotificationsEnabled(params, region);
case "SetIdentityMailFromDomain" -> handleSetIdentityMailFromDomain(params, region);
case "GetIdentityMailFromDomainAttributes" -> handleGetIdentityMailFromDomainAttributes(params, region);
@@ -334,14 +336,16 @@ public class SesQueryHandler {
var xml = new XmlBuilder().start("DkimAttributes");
for (String identityValue : identities) {
Identity identity = sesService.getIdentityVerificationAttributes(identityValue, region);
// An email identity reports its parent domain's DKIM state (matching AWS).
Identity src = sesService.effectiveDkimSource(identity, region);
xml.start("entry");
xml.elem("key", identityValue);
xml.start("value");
xml.elem("DkimEnabled", identity != null ? String.valueOf(identity.isDkimEnabled()) : "false");
xml.elem("DkimVerificationStatus", identity != null ? identity.getDkimVerificationStatus() : "NotStarted");
xml.elem("DkimEnabled", src != null ? String.valueOf(src.isDkimEnabled()) : "false");
xml.elem("DkimVerificationStatus", src != null ? src.getDkimVerificationStatus() : "NotStarted");
xml.start("DkimTokens");
if (identity != null && identity.getDkimTokens() != null) {
for (String token : identity.getDkimTokens()) {
if (src != null && src.getDkimTokens() != null) {
for (String token : src.getDkimTokens()) {
xml.elem("member", token);
}
}
@@ -360,6 +364,24 @@ public class SesQueryHandler {
return Response.ok(AwsQueryResponse.envelopeEmptyResult("SetIdentityFeedbackForwardingEnabled", AwsNamespaces.SES)).build();
}
private Response handleSetIdentityDkimEnabled(MultivaluedMap<String, String> params, String region) {
String identityValue = getParam(params, "Identity");
boolean enabled = parseRequiredBoolean(params, "DkimEnabled");
sesService.setDkimAttributes(identityValue, enabled, region);
return Response.ok(AwsQueryResponse.envelopeEmptyResult("SetIdentityDkimEnabled", AwsNamespaces.SES)).build();
}
private Response handleVerifyDomainDkim(MultivaluedMap<String, String> params, String region) {
String domain = getParam(params, "Domain");
List<String> tokens = sesService.verifyDomainDkim(domain, region);
var xml = new XmlBuilder().start("DkimTokens");
for (String token : tokens) {
xml.elem("member", token);
}
xml.end("DkimTokens");
return Response.ok(AwsQueryResponse.envelope("VerifyDomainDkim", AwsNamespaces.SES, xml.build())).build();
}
private Response handleSetIdentityHeadersInNotificationsEnabled(MultivaluedMap<String, String> params, String region) {
String identityValue = getParam(params, "Identity");
String notificationType = getParam(params, "NotificationType");
@@ -255,10 +255,13 @@ public class SesService {
if (existing != null) return existing;
Identity identity = new Identity(domain, "Domain");
identity.setDkimTokens(generateDkimTokens());
regenerateDkimTokens(identity);
identity.setVerificationStatus("Pending");
identity.setDkimEnabled(true);
identity.setDkimVerificationStatus("Pending");
// The create response reports DKIM verification as NotStarted (SES hasn't begun tracking the
// CNAMEs yet); the first Get/List refresh transitions it to Pending. Matches AWS, where
// CreateEmailIdentity returns NOT_STARTED but a subsequent GetEmailIdentity returns PENDING.
identity.setDkimVerificationStatus("NotStarted");
identityStore.put(key, identity);
LOG.infov("Verified domain identity: {0} in region {1}", domain, region);
return identity;
@@ -677,27 +680,33 @@ public class SesService {
}
public void setDkimAttributes(String identityValue, boolean signingEnabled, String region) {
String key = identityKey(region, identityValue);
Identity identity = identityStore.get(key).orElse(null);
if (identity == null) {
String domain = identityValue != null && identityValue.contains("@")
? identityValue.substring(identityValue.indexOf('@') + 1)
: identityValue;
if (identityValue != null && identityValue.contains("@")
&& identityStore.get(identityKey(region, domain)).isPresent()) {
if (identityValue == null || identityValue.isBlank()) {
throw new AwsException("InvalidParameterValue", "Identity is required.", 400);
}
// DKIM is a domain concept and an email reports its parent domain's DKIM (via effectiveDkimSource),
// so toggling DKIM on an email whose parent domain is a registered identity is a no-op that leaves
// the domain untouched — matching real AWS, regardless of whether the email identity itself exists.
if (identityValue.contains("@")) {
String domain = identityValue.substring(identityValue.indexOf('@') + 1);
if (identityStore.get(identityKey(region, domain)).isPresent()) {
return;
}
throw new AwsException("BadRequestException",
}
String key = identityKey(region, identityValue);
Identity identity = identityStore.get(key).orElse(null);
if (identity == null) {
String domain = identityValue.contains("@")
? identityValue.substring(identityValue.indexOf('@') + 1)
: identityValue;
// v1-native code; the v2 controller remaps InvalidParameterValue -> BadRequestException.
throw new AwsException("InvalidParameterValue",
"Domain " + domain + " is not verified for DKIM signing.", 400);
}
// Only toggle the signing flag. DkimVerificationStatus tracks DNS record detection (via the
// Route53 lookup in refreshIdentityState), not the enabled flag — matching real AWS, where
// SetIdentityDkimEnabled / PutEmailIdentityDkimAttributes leave the verification status alone.
identity.setDkimEnabled(signingEnabled);
if (signingEnabled) {
identity.setDkimVerificationStatus("Success");
} else {
identity.setDkimVerificationStatus("NotStarted");
}
identityStore.put(key, identity);
LOG.infov("Updated DKIM attributes for {0}: signingEnabled={1}", identityValue, signingEnabled);
}
@@ -710,6 +719,128 @@ public class SesService {
return tokens;
}
/**
* Generates a fresh Easy DKIM token set and records the key length / generation timestamp. New
* tokens mean the previously published CNAMEs no longer match, so the verification status resets
* to Pending (re-detected via the Route53 lookup) and the origin returns to AWS_SES. Only meaningful
* for domain identities; refreshIdentityState re-upgrades to Success once the new records exist.
*/
private void regenerateDkimTokens(Identity identity) {
identity.setDkimTokens(generateDkimTokens());
identity.setDkimCurrentSigningKeyLength(identity.getDkimNextSigningKeyLength());
identity.setDkimLastKeyGenerationTimestamp(Instant.now(clock));
identity.setDkimSigningAttributesOrigin("AWS_SES");
// The new tokens' CNAMEs aren't detected yet, so DKIM verification resets to Pending. The
// identity's own verification is NOT revoked by a key rotation (matching AWS) — keep Success
// when already verified; a not-yet-verified identity stays Pending.
identity.setDkimVerificationStatus("Pending");
if (!"Success".equals(identity.getVerificationStatus())) {
identity.setVerificationStatus("Pending");
}
}
/**
* v1 VerifyDomainDkim: returns the domain identity's DKIM tokens (3), generating them if needed.
* Tokens are stable across calls (AWS does not regenerate them). The domain is registered as a
* pending identity if it does not exist yet, matching AWS's lenient behavior (VerifyDomainDkim
* starts DKIM setup for any domain).
*/
public List<String> verifyDomainDkim(String domain, String region) {
validateIdentityWhitespace(domain, "Domain");
if (domain == null || domain.isBlank()) {
throw new AwsException("InvalidParameterValue", "Domain is required.", 400);
}
if (domain.contains("@")) {
// Domain-only action: an email-shaped value must not create an email-valued "Domain".
throw new AwsException("InvalidParameterValue", "Domain " + domain + " is invalid.", 400);
}
String key = identityKey(region, domain);
Identity identity = identityStore.get(key).orElse(null);
if (identity == null) {
identity = new Identity(domain, "Domain");
identity.setVerificationStatus("Pending");
identity.setDkimEnabled(true);
identity.setDkimVerificationStatus("Pending");
}
if (!hasDkimTokens(identity)) {
regenerateDkimTokens(identity);
}
identityStore.put(key, identity);
LOG.infov("VerifyDomainDkim: {0} (region {1})", domain, region);
return identity.getDkimTokens();
}
/**
* v2 PutEmailIdentityDkimSigningAttributes. AWS_SES (Easy DKIM): sets the next signing key length
* and regenerates tokens when the length changes. EXTERNAL (BYODKIM): switches the origin and
* clears the Easy DKIM tokens (the caller publishes its own selector, which Floci does not use for
* signing). Returns the resulting DKIM status and tokens.
*/
public DkimSigningResult putDkimSigningAttributes(String identityValue, String origin,
String signingSelector, String nextKeyLength,
String region) {
// DKIM signing attributes are domain-level; AWS rejects a missing/blank value or an
// email-address identity here (verified: all return the same 400 "must be a valid domain")
// rather than mutating state that the email would just inherit back from its parent domain.
if (identityValue == null || identityValue.isBlank() || identityValue.contains("@")) {
throw new AwsException("BadRequestException",
"The EmailIdentity value must be a valid domain.", 400);
}
String key = identityKey(region, identityValue);
Identity identity = identityStore.get(key)
.orElseThrow(() -> new AwsException("NotFoundException",
"Email identity " + identityValue + " does not exist.", 404));
if ("EXTERNAL".equals(origin)) {
identity.setDkimSigningAttributesOrigin("EXTERNAL");
// Clear the Easy DKIM tokens and reset the status: Floci can't verify a BYODKIM selector,
// so leaving a prior Success/Pending with no tokens (and no Route53 detection path) would
// be inconsistent.
identity.setDkimTokens(new ArrayList<>());
identity.setDkimVerificationStatus("Pending");
LOG.infov("PutEmailIdentityDkimSigningAttributes(EXTERNAL): {0} selector={1}",
identityValue, signingSelector);
} else {
identity.setDkimSigningAttributesOrigin("AWS_SES");
// DKIM tokens are a domain concept; only (re)generate them for a domain identity.
if ("Domain".equals(identity.getIdentityType())) {
if (nextKeyLength != null && !nextKeyLength.equals(identity.getDkimCurrentSigningKeyLength())) {
identity.setDkimNextSigningKeyLength(nextKeyLength);
regenerateDkimTokens(identity);
} else if (!hasDkimTokens(identity)) {
regenerateDkimTokens(identity);
}
}
LOG.infov("PutEmailIdentityDkimSigningAttributes(AWS_SES): {0} keyLength={1}",
identityValue, nextKeyLength);
}
identityStore.put(key, refreshIdentityState(identity, region));
Identity src = effectiveDkimSource(identity, region);
return new DkimSigningResult(src.getDkimVerificationStatus(),
src.getDkimTokens() == null ? List.of() : src.getDkimTokens());
}
/** Carrier for the PutEmailIdentityDkimSigningAttributes response ({@code dkimStatus} is v1-native). */
public record DkimSigningResult(String dkimStatus, List<String> dkimTokens) {}
/**
* Resolves which identity's DKIM state should be reported for {@code identity}. A domain reports
* its own DKIM; an email address reports its parent domain's DKIM (SigningEnabled / Status /
* Tokens all inherit from the domain), matching AWS. Falls back to the identity itself when the
* parent domain is not a registered identity.
*/
public Identity effectiveDkimSource(Identity identity, String region) {
if (identity == null || !"EmailAddress".equals(identity.getIdentityType())) {
return identity;
}
String addr = identity.getIdentity();
int at = addr == null ? -1 : addr.indexOf('@');
if (at < 0 || at == addr.length() - 1) {
return identity;
}
Identity domainIdentity = identityStore.get(identityKey(region, addr.substring(at + 1))).orElse(null);
return domainIdentity == null ? identity : refreshIdentityState(domainIdentity, region);
}
private Identity refreshIdentityState(Identity identity, String region) {
if (identity == null) {
return null;
@@ -717,19 +848,30 @@ public class SesService {
boolean changed = false;
if ("Domain".equals(identity.getIdentityType()) && identity.getDkimTokens() == null) {
identity.setDkimTokens(generateDkimTokens());
regenerateDkimTokens(identity);
changed = true;
}
if ("Domain".equals(identity.getIdentityType()) && hasDkimTokens(identity)) {
changed |= normalizePendingDomainState(identity);
if (!"Success".equals(identity.getVerificationStatus())
&& hasAllExpectedDkimRecords(identity, region)) {
identity.setVerificationStatus("Success");
if (identity.isDkimEnabled()) {
identity.setDkimVerificationStatus("Success");
// Upgrade identity- and DKIM-verification independently so that, e.g., after a key rotation
// (which resets only DkimVerificationStatus while the identity stays verified), the DKIM
// status can still return to Success once the new records are detected.
// Only look up DNS when a status can still be upgraded — skip the (cached) Route53 check
// once both identity- and DKIM-verification are already Success. DKIM verification tracks
// DNS detection independently of the signing-enabled flag, so it can reach Success even
// when DKIM signing is disabled, and can re-pend/re-upgrade after a key rotation.
boolean needsUpgrade = !"Success".equals(identity.getVerificationStatus())
|| !"Success".equals(identity.getDkimVerificationStatus());
if (needsUpgrade && hasAllExpectedDkimRecords(identity, region)) {
if (!"Success".equals(identity.getVerificationStatus())) {
identity.setVerificationStatus("Success");
changed = true;
}
if (!"Success".equals(identity.getDkimVerificationStatus())) {
identity.setDkimVerificationStatus("Success");
changed = true;
}
changed = true;
}
}
@@ -754,8 +896,9 @@ public class SesService {
identity.setVerificationStatus("Pending");
changed = true;
}
if (identity.isDkimEnabled()
&& !"Success".equals(identity.getDkimVerificationStatus())
// DKIM verification tracks DNS detection, not the signing-enabled flag, so a domain that has
// begun tracking (NotStarted -> Pending) reports Pending on Get even while signing is disabled.
if (!"Success".equals(identity.getDkimVerificationStatus())
&& !"Pending".equals(identity.getDkimVerificationStatus())) {
identity.setDkimVerificationStatus("Pending");
changed = true;
@@ -35,6 +35,18 @@ public class Identity {
@JsonProperty("DkimTokens")
private List<String> dkimTokens;
@JsonProperty("DkimSigningAttributesOrigin")
private String dkimSigningAttributesOrigin = "AWS_SES"; // "AWS_SES" (Easy DKIM) or "EXTERNAL" (BYODKIM)
@JsonProperty("DkimNextSigningKeyLength")
private String dkimNextSigningKeyLength = "RSA_2048_BIT";
@JsonProperty("DkimCurrentSigningKeyLength")
private String dkimCurrentSigningKeyLength = "RSA_2048_BIT";
@JsonProperty("DkimLastKeyGenerationTimestamp")
private Instant dkimLastKeyGenerationTimestamp;
@JsonProperty("NotificationAttributes")
private Map<String, String> notificationAttributes = new HashMap<>();
@@ -95,6 +107,18 @@ public class Identity {
public List<String> getDkimTokens() { return dkimTokens; }
public void setDkimTokens(List<String> dkimTokens) { this.dkimTokens = dkimTokens; }
public String getDkimSigningAttributesOrigin() { return dkimSigningAttributesOrigin; }
public void setDkimSigningAttributesOrigin(String origin) { this.dkimSigningAttributesOrigin = origin; }
public String getDkimNextSigningKeyLength() { return dkimNextSigningKeyLength; }
public void setDkimNextSigningKeyLength(String len) { this.dkimNextSigningKeyLength = len; }
public String getDkimCurrentSigningKeyLength() { return dkimCurrentSigningKeyLength; }
public void setDkimCurrentSigningKeyLength(String len) { this.dkimCurrentSigningKeyLength = len; }
public Instant getDkimLastKeyGenerationTimestamp() { return dkimLastKeyGenerationTimestamp; }
public void setDkimLastKeyGenerationTimestamp(Instant ts) { this.dkimLastKeyGenerationTimestamp = ts; }
public Map<String, String> getNotificationAttributes() { return notificationAttributes; }
public void setNotificationAttributes(Map<String, String> notificationAttributes) { this.notificationAttributes = notificationAttributes; }