Class RotationAdmissibilityResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.RotationAdmissibilityResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class RotationAdmissibilityResponse
extends Object
Server-authoritative rotation admissibility preview for a source key.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCandidatesItem(CandidateVerdict candidatesItem) candidates(List<CandidateVerdict> candidates) booleanCreate an instance of RotationAdmissibilityResponse given an JSON stringPer-candidate rotation admissibility verdicts (one entry per catalogue algorithm).Source key current PRIMARY algorithm.Source Stable KID the verdicts were computed for.Source weakest-link NIST security level (1-5), null when unresolvable.inthashCode()voidsetCandidates(List<CandidateVerdict> candidates) voidsetSourceAlg(String sourceAlg) voidsetSourceKid(String sourceKid) voidsetSourceLevel(Integer sourceLevel) sourceLevel(Integer sourceLevel) toJson()Convert an instance of RotationAdmissibilityResponse 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_CANDIDATES
- See Also:
-
SERIALIZED_NAME_SOURCE_ALG
- See Also:
-
SERIALIZED_NAME_SOURCE_KID
- See Also:
-
SERIALIZED_NAME_SOURCE_LEVEL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RotationAdmissibilityResponse
public RotationAdmissibilityResponse()
-
-
Method Details
-
candidates
-
addCandidatesItem
-
getCandidates
Per-candidate rotation admissibility verdicts (one entry per catalogue algorithm).- Returns:
- candidates
-
setCandidates
-
sourceAlg
-
getSourceAlg
Source key current PRIMARY algorithm.- Returns:
- sourceAlg
-
setSourceAlg
-
sourceKid
-
getSourceKid
Source Stable KID the verdicts were computed for.- Returns:
- sourceKid
-
setSourceKid
-
sourceLevel
-
getSourceLevel
Source weakest-link NIST security level (1-5), null when unresolvable.- Returns:
- sourceLevel
-
setSourceLevel
-
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 RotationAdmissibilityResponse
-
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 RotationAdmissibilityResponse
-
fromJson
Create an instance of RotationAdmissibilityResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RotationAdmissibilityResponse
- Throws:
IOException- if the JSON string is invalid with respect to RotationAdmissibilityResponse
-
toJson
Convert an instance of RotationAdmissibilityResponse to an JSON string- Returns:
- JSON string
-