Class RotationScheduleCeiling
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.RotationScheduleCeiling
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class RotationScheduleCeiling
extends Object
Maximum cryptoperiod the compliance packs state for the key's class (NIST SP 800-57 Part 1 Rev. 5 ยง5.3.6), which bounds the key's rotation interval.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPackIdsItem(String packIdsItem) basis(CryptoperiodCeilingBasis basis) booleanstatic RotationScheduleCeilingCreate an instance of RotationScheduleCeiling given an JSON stringgetBasis()Which packs the maximum was read from.The wire value ofbasis: what the server sent, verbatim.Key class the maximum applies to, decided on the key's type and operations.The wire value ofkeyClass: what the server sent, verbatim.Maximum in calendar months from the creation of the key's primary material.Compliance packs that state the maximum; empty when none does.inthashCode()keyClass(CryptoperiodKeyClass keyClass) maximumMonths(Integer maximumMonths) voidsetBasis(CryptoperiodCeilingBasis basis) voidsetKeyClass(CryptoperiodKeyClass keyClass) voidsetMaximumMonths(Integer maximumMonths) voidsetPackIds(List<String> packIds) toJson()Convert an instance of RotationScheduleCeiling to an JSON stringtoString()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_BASIS
- See Also:
-
SERIALIZED_NAME_KEY_CLASS
- See Also:
-
SERIALIZED_NAME_MAXIMUM_MONTHS
- See Also:
-
SERIALIZED_NAME_PACK_IDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RotationScheduleCeiling
public RotationScheduleCeiling()
-
-
Method Details
-
getBasisAsString
The wire value ofbasis: 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
getBasis()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
-
getKeyClassAsString
The wire value ofkeyClass: 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
getKeyClass()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
-
basis
-
getBasis
Which packs the maximum was read from.- Returns:
- basis
-
setBasis
-
keyClass
-
getKeyClass
Key class the maximum applies to, decided on the key's type and operations.- Returns:
- keyClass
-
setKeyClass
-
maximumMonths
-
getMaximumMonths
Maximum in calendar months from the creation of the key's primary material. Null when no applicable pack states one for the class.- Returns:
- maximumMonths
-
setMaximumMonths
-
packIds
-
addPackIdsItem
-
getPackIds
Compliance packs that state the maximum; empty when none does.- Returns:
- packIds
-
setPackIds
-
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 RotationScheduleCeiling
-
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 RotationScheduleCeiling
-
fromJson
Create an instance of RotationScheduleCeiling given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RotationScheduleCeiling
- Throws:
IOException- if the JSON string is invalid with respect to RotationScheduleCeiling
-
toJson
Convert an instance of RotationScheduleCeiling to an JSON string- Returns:
- JSON string
-