Class FailedEntry
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.FailedEntry
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class FailedEntry
extends Object
An entry that failed validation or import.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumEntry type.static enumFailure category: - CERTIFICATE_VALIDATION_FAILED: the certificate failed validation (STRICT mode), an expired or otherwise unacceptable certificate included - KEY_BINDING_FAILED: the entry's private key does not match its certificate - KEY_ID_RETIRED: the entry's Key ID belonged to a destroyed key of this tenant; a Key ID is never reused, so the entry needs another Key ID - UNEXPECTED_ERROR: an internal processing error; errorMessage carries a fixed text -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentryType(FailedEntry.EntryTypeEnum entryType) booleanerrorMessage(String errorMessage) failureReason(FailedEntry.FailureReasonEnum failureReason) static FailedEntryCreate an instance of FailedEntry given an JSON stringEntry type.The wire value ofentryType: what the server sent, verbatim.The failure, explained.Failure category: - CERTIFICATE_VALIDATION_FAILED: the certificate failed validation (STRICT mode), an expired or otherwise unacceptable certificate included - KEY_BINDING_FAILED: the entry's private key does not match its certificate - KEY_ID_RETIRED: the entry's Key ID belonged to a destroyed key of this tenant; a Key ID is never reused, so the entry needs another Key ID - UNEXPECTED_ERROR: an internal processing error; errorMessage carries a fixed textThe wire value offailureReason: what the server sent, verbatim.getKid()Identifier attempted for this entry.The entry's alias in the original keystore file.inthashCode()voidsetEntryType(FailedEntry.EntryTypeEnum entryType) voidsetErrorMessage(String errorMessage) voidsetFailureReason(FailedEntry.FailureReasonEnum failureReason) voidvoidsetSourceAlias(String sourceAlias) sourceAlias(String sourceAlias) toJson()Convert an instance of FailedEntry 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_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_ERROR_MESSAGE
- See Also:
-
SERIALIZED_NAME_FAILURE_REASON
- See Also:
-
SERIALIZED_NAME_KID
- See Also:
-
SERIALIZED_NAME_SOURCE_ALIAS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FailedEntry
public FailedEntry()
-
-
Method Details
-
getEntryTypeAsString
The wire value ofentryType: 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
getEntryType()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
-
getFailureReasonAsString
The wire value offailureReason: 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
getFailureReason()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
-
entryType
-
getEntryType
Entry type. Only PRIVATE_KEY is published: a trusted-certificate entry that fails to import is best-effort and is not added to the failure list.- Returns:
- entryType
-
setEntryType
-
errorMessage
-
getErrorMessage
The failure, explained.- Returns:
- errorMessage
-
setErrorMessage
-
failureReason
-
getFailureReason
Failure category: - CERTIFICATE_VALIDATION_FAILED: the certificate failed validation (STRICT mode), an expired or otherwise unacceptable certificate included - KEY_BINDING_FAILED: the entry's private key does not match its certificate - KEY_ID_RETIRED: the entry's Key ID belonged to a destroyed key of this tenant; a Key ID is never reused, so the entry needs another Key ID - UNEXPECTED_ERROR: an internal processing error; errorMessage carries a fixed text- Returns:
- failureReason
-
setFailureReason
-
kid
-
getKid
Identifier attempted for this entry.- Returns:
- kid
-
setKid
-
sourceAlias
-
getSourceAlias
The entry's alias in the original keystore file.- Returns:
- sourceAlias
-
setSourceAlias
-
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 FailedEntry
-
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 FailedEntry
-
fromJson
Create an instance of FailedEntry given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FailedEntry
- Throws:
IOException- if the JSON string is invalid with respect to FailedEntry
-
toJson
Convert an instance of FailedEntry to an JSON string- Returns:
- JSON string
-