Class KeyRotationScheduleView
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeyRotationScheduleView
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeyRotationScheduleView
extends Object
The key's effective automatic-rotation schedule: its enablement, the cadence it follows and where that comes from, its usage options, the ceilings applied, and the next instant the key is due.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTriggersItem(TimeBasedTrigger triggersItem) autoRotationEnabled(Boolean autoRotationEnabled) baseInstant(OffsetDateTime baseInstant) ceiling(RotationScheduleCeiling ceiling) clampedBy(RotationScheduleClamp clampedBy) configuredInterval(String configuredInterval) effectiveFrom(OffsetDateTime effectiveFrom) effectiveInterval(String effectiveInterval) booleanstatic KeyRotationScheduleViewCreate an instance of KeyRotationScheduleView given an JSON stringWhether automatic rotation is enabled for the key.Activation of the key's primary material, from which the interval is measured.Compliance-pack maximum cryptoperiod of the key's class.Which bound brought the next rotation forward.The wire value ofclampedBy: what the server sent, verbatim.Interval of the effective TIME_BASED trigger, as an ISO-8601 period.Newest instant at which one of those policies took effect; no rotation is due before it.Interval the next rotation is computed with, after the ceilings: the configured interval, or the bound clampedBy names.Configured interval the key would follow without an interval of its own, as an ISO-8601 period, before the ceilings: the tenant default's when the tenant has a default, else the deployment default's.What a write on this deployment admits beyond the interval grammar: its shortest interval.getKid()Stable key id.Instant the key is due for automatic rotation.Version of each policy the schedule is composed from.Whether the key rotates when its usage count reaches its soft usage limit, while autoRotationEnabled is true.Whether the key rotates when its usage count reaches its maximum usage limit, while autoRotationEnabled is true.Which policy the triggers come from.The wire value ofsource: what the server sent, verbatim.getState()Where the key stands with respect to automatic rotation.The wire value ofstate: what the server sent, verbatim.Window after nextDueAt within which the rotation may be performed, as an ISO-8601 duration: one hundredth of effectiveInterval, measured from baseInstant on the UTC calendar, at most PT6H; raising nextDueAt to effectiveFrom does not widen it.Effective triggers: the key's override, else the tenant default, else the deployment default.Optimistic-concurrency token of the key's schedule; send it back as version to refuse a stale write.inthashCode()inheritedInterval(String inheritedInterval) intervalConstraints(RotationIntervalConstraints intervalConstraints) nextDueAt(OffsetDateTime nextDueAt) policyVersions(RotationSchedulePolicyVersions policyVersions) rotateOnSoftUsageLimit(Boolean rotateOnSoftUsageLimit) rotateOnUsageExhaustion(Boolean rotateOnUsageExhaustion) voidsetAutoRotationEnabled(Boolean autoRotationEnabled) voidsetBaseInstant(OffsetDateTime baseInstant) voidsetCeiling(RotationScheduleCeiling ceiling) voidsetClampedBy(RotationScheduleClamp clampedBy) voidsetConfiguredInterval(String configuredInterval) voidsetEffectiveFrom(OffsetDateTime effectiveFrom) voidsetEffectiveInterval(String effectiveInterval) voidsetInheritedInterval(String inheritedInterval) voidsetIntervalConstraints(RotationIntervalConstraints intervalConstraints) voidvoidsetNextDueAt(OffsetDateTime nextDueAt) voidsetPolicyVersions(RotationSchedulePolicyVersions policyVersions) voidsetRotateOnSoftUsageLimit(Boolean rotateOnSoftUsageLimit) voidsetRotateOnUsageExhaustion(Boolean rotateOnUsageExhaustion) voidsetSource(RotationScheduleSource source) voidsetState(KeyRotationScheduleState state) voidsetToleranceWindow(String toleranceWindow) voidsetTriggers(List<TimeBasedTrigger> triggers) voidsetVersion(Long version) source(RotationScheduleSource source) state(KeyRotationScheduleState state) toJson()Convert an instance of KeyRotationScheduleView to an JSON stringtoleranceWindow(String toleranceWindow) toString()triggers(List<TimeBasedTrigger> triggers) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_AUTO_ROTATION_ENABLED
- See Also:
-
SERIALIZED_NAME_BASE_INSTANT
- See Also:
-
SERIALIZED_NAME_CEILING
- See Also:
-
SERIALIZED_NAME_CLAMPED_BY
- See Also:
-
SERIALIZED_NAME_CONFIGURED_INTERVAL
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_FROM
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_INTERVAL
- See Also:
-
SERIALIZED_NAME_INHERITED_INTERVAL
- See Also:
-
SERIALIZED_NAME_INTERVAL_CONSTRAINTS
- See Also:
-
SERIALIZED_NAME_KID
- See Also:
-
SERIALIZED_NAME_NEXT_DUE_AT
- See Also:
-
SERIALIZED_NAME_POLICY_VERSIONS
- See Also:
-
SERIALIZED_NAME_ROTATE_ON_SOFT_USAGE_LIMIT
- See Also:
-
SERIALIZED_NAME_ROTATE_ON_USAGE_EXHAUSTION
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_TOLERANCE_WINDOW
- See Also:
-
SERIALIZED_NAME_TRIGGERS
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeyRotationScheduleView
public KeyRotationScheduleView()
-
-
Method Details
-
getClampedByAsString
The wire value ofclampedBy: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getClampedBy()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getSourceAsString
The wire value ofsource: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getSource()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getStateAsString
The wire value ofstate: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getState()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
autoRotationEnabled
-
getAutoRotationEnabled
Whether automatic rotation is enabled for the key. False for a key whose schedule was never set.- Returns:
- autoRotationEnabled
-
setAutoRotationEnabled
-
baseInstant
-
getBaseInstant
Activation of the key's primary material, from which the interval is measured. Null when the key has no primary material.- Returns:
- baseInstant
-
setBaseInstant
-
ceiling
-
getCeiling
Compliance-pack maximum cryptoperiod of the key's class.- Returns:
- ceiling
-
setCeiling
-
clampedBy
-
getClampedBy
Which bound brought the next rotation forward.- Returns:
- clampedBy
-
setClampedBy
-
configuredInterval
-
getConfiguredInterval
Interval of the effective TIME_BASED trigger, as an ISO-8601 period. Null when the triggers carry none.- Returns:
- configuredInterval
-
setConfiguredInterval
-
effectiveFrom
-
getEffectiveFrom
Newest instant at which one of those policies took effect; no rotation is due before it.- Returns:
- effectiveFrom
-
setEffectiveFrom
-
effectiveInterval
-
getEffectiveInterval
Interval the next rotation is computed with, after the ceilings: the configured interval, or the bound clampedBy names. Null when there is no configured interval or the key has no primary material.- Returns:
- effectiveInterval
-
setEffectiveInterval
-
inheritedInterval
-
getInheritedInterval
Configured interval the key would follow without an interval of its own, as an ISO-8601 period, before the ceilings: the tenant default's when the tenant has a default, else the deployment default's. Null when that default sets no interval (a tenant default with no triggers included), so removing the key's own interval would leave it with no interval.- Returns:
- inheritedInterval
-
setInheritedInterval
-
intervalConstraints
public KeyRotationScheduleView intervalConstraints(@Nonnull RotationIntervalConstraints intervalConstraints) -
getIntervalConstraints
What a write on this deployment admits beyond the interval grammar: its shortest interval. Present on every read and write answer.- Returns:
- intervalConstraints
-
setIntervalConstraints
-
kid
-
getKid
Stable key id.- Returns:
- kid
-
setKid
-
nextDueAt
-
getNextDueAt
Instant the key is due for automatic rotation. Set only when state is SCHEDULED. Never earlier than effectiveFrom, except that it never passes the end of the key's maximum cryptoperiod (ceiling): then it may lie in the past, and the key is overdue.- Returns:
- nextDueAt
-
setNextDueAt
-
policyVersions
public KeyRotationScheduleView policyVersions(@Nonnull RotationSchedulePolicyVersions policyVersions) -
getPolicyVersions
Version of each policy the schedule is composed from.- Returns:
- policyVersions
-
setPolicyVersions
-
rotateOnSoftUsageLimit
-
getRotateOnSoftUsageLimit
Whether the key rotates when its usage count reaches its soft usage limit, while autoRotationEnabled is true. False for a key whose schedule was never set.- Returns:
- rotateOnSoftUsageLimit
-
setRotateOnSoftUsageLimit
-
rotateOnUsageExhaustion
-
getRotateOnUsageExhaustion
Whether the key rotates when its usage count reaches its maximum usage limit, while autoRotationEnabled is true. False for a key whose schedule was never set.- Returns:
- rotateOnUsageExhaustion
-
setRotateOnUsageExhaustion
-
source
-
getSource
Which policy the triggers come from.- Returns:
- source
-
setSource
-
state
-
getState
Where the key stands with respect to automatic rotation.- Returns:
- state
-
setState
-
toleranceWindow
-
getToleranceWindow
Window after nextDueAt within which the rotation may be performed, as an ISO-8601 duration: one hundredth of effectiveInterval, measured from baseInstant on the UTC calendar, at most PT6H; raising nextDueAt to effectiveFrom does not widen it. Set exactly when nextDueAt is.- Returns:
- toleranceWindow
-
setToleranceWindow
-
triggers
-
addTriggersItem
-
getTriggers
Effective triggers: the key's override, else the tenant default, else the deployment default. Empty when none sets a cadence.- Returns:
- triggers
-
setTriggers
-
version
-
getVersion
Optimistic-concurrency token of the key's schedule; send it back as version to refuse a stale write. Null while the key has no schedule of its own.- Returns:
- version
-
setVersion
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to KeyRotationScheduleView
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a KeyRotationScheduleView
-
fromJson
Create an instance of KeyRotationScheduleView given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeyRotationScheduleView
- Throws:
IOException- if the JSON string is invalid with respect to KeyRotationScheduleView
-
toJson
Convert an instance of KeyRotationScheduleView to an JSON string- Returns:
- JSON string
-