Class CandidateVerdict
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.CandidateVerdict
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CandidateVerdict
extends Object
Rotation admissibility verdict for a single candidate target algorithm.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadmissible(Boolean admissible) booleanstatic CandidateVerdictCreate an instance of CandidateVerdict given an JSON stringWhether rotating the source key to this candidate is permitted.getAlg()Candidate target algorithm identifier.Source weakest-link NIST security level (1-5), null when unresolvable.Stable reason code (equals the execute-time error code for the gate).Human-readable detail (algorithm + security-level names only).True only for a policy-permitted downgrade that needs explicit consent.Candidate weakest-link NIST security level (1-5), null when unresolvable.inthashCode()reasonCode(String reasonCode) reasonText(String reasonText) requiresConsent(Boolean requiresConsent) voidsetAdmissible(Boolean admissible) voidvoidsetFromLevel(Integer fromLevel) voidsetReasonCode(String reasonCode) voidsetReasonText(String reasonText) voidsetRequiresConsent(Boolean requiresConsent) voidsetToLevel(Integer toLevel) toJson()Convert an instance of CandidateVerdict 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_ADMISSIBLE
- See Also:
-
SERIALIZED_NAME_ALG
- See Also:
-
SERIALIZED_NAME_FROM_LEVEL
- See Also:
-
SERIALIZED_NAME_REASON_CODE
- See Also:
-
SERIALIZED_NAME_REASON_TEXT
- See Also:
-
SERIALIZED_NAME_REQUIRES_CONSENT
- See Also:
-
SERIALIZED_NAME_TO_LEVEL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CandidateVerdict
public CandidateVerdict()
-
-
Method Details
-
admissible
-
getAdmissible
Whether rotating the source key to this candidate is permitted.- Returns:
- admissible
-
setAdmissible
-
alg
-
getAlg
Candidate target algorithm identifier.- Returns:
- alg
-
setAlg
-
fromLevel
-
getFromLevel
Source weakest-link NIST security level (1-5), null when unresolvable.- Returns:
- fromLevel
-
setFromLevel
-
reasonCode
-
getReasonCode
Stable reason code (equals the execute-time error code for the gate).- Returns:
- reasonCode
-
setReasonCode
-
reasonText
-
getReasonText
Human-readable detail (algorithm + security-level names only).- Returns:
- reasonText
-
setReasonText
-
requiresConsent
-
getRequiresConsent
True only for a policy-permitted downgrade that needs explicit consent.- Returns:
- requiresConsent
-
setRequiresConsent
-
toLevel
-
getToLevel
Candidate weakest-link NIST security level (1-5), null when unresolvable.- Returns:
- toLevel
-
setToLevel
-
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 CandidateVerdict
-
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 CandidateVerdict
-
fromJson
Create an instance of CandidateVerdict given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CandidateVerdict
- Throws:
IOException- if the JSON string is invalid with respect to CandidateVerdict
-
toJson
Convert an instance of CandidateVerdict to an JSON string- Returns:
- JSON string
-