Class KeystoreImportResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeystoreImportResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeystoreImportResponse
extends Object
Comprehensive response for a keystore import (PKCS#12 / JKS). Mirrors the cryptographic service's keystore import response.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCertificatesItem(ImportedCertificate certificatesItem) addFailuresItem(FailedEntry failuresItem) addKeysItem(ImportedKey keysItem) addSkippedItem(SkippedEntry skippedItem) certificates(List<ImportedCertificate> certificates) detection(FormatDetection detection) booleanfailures(List<FailedEntry> failures) static KeystoreImportResponseCreate an instance of KeystoreImportResponse given an JSON stringDetailed information about each successfully imported trusted certificate.Format detection information (PKCS12 or JKS detected).Entries that failed validation or import.getKeys()Detailed information about each imported key (public metadata).Entries skipped because they already exist (idempotent reimport).Quick summary of import results (totals + result type).inthashCode()keys(List<ImportedKey> keys) voidsetCertificates(List<ImportedCertificate> certificates) voidsetDetection(FormatDetection detection) voidsetFailures(List<FailedEntry> failures) voidsetKeys(List<ImportedKey> keys) voidsetSkipped(List<SkippedEntry> skipped) voidsetSummary(ImportSummary summary) skipped(List<SkippedEntry> skipped) summary(ImportSummary summary) toJson()Convert an instance of KeystoreImportResponse 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_CERTIFICATES
- See Also:
-
SERIALIZED_NAME_DETECTION
- See Also:
-
SERIALIZED_NAME_FAILURES
- See Also:
-
SERIALIZED_NAME_KEYS
- See Also:
-
SERIALIZED_NAME_SKIPPED
- See Also:
-
SERIALIZED_NAME_SUMMARY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeystoreImportResponse
public KeystoreImportResponse()
-
-
Method Details
-
certificates
-
addCertificatesItem
-
getCertificates
Detailed information about each successfully imported trusted certificate.- Returns:
- certificates
-
setCertificates
-
detection
-
getDetection
Format detection information (PKCS12 or JKS detected).- Returns:
- detection
-
setDetection
-
failures
-
addFailuresItem
-
getFailures
Entries that failed validation or import.- Returns:
- failures
-
setFailures
-
keys
-
addKeysItem
-
getKeys
Detailed information about each imported key (public metadata).- Returns:
- keys
-
setKeys
-
skipped
-
addSkippedItem
-
getSkipped
Entries skipped because they already exist (idempotent reimport).- Returns:
- skipped
-
setSkipped
-
summary
-
getSummary
Quick summary of import results (totals + result type).- Returns:
- summary
-
setSummary
-
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 KeystoreImportResponse
-
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 KeystoreImportResponse
-
fromJson
Create an instance of KeystoreImportResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeystoreImportResponse
- Throws:
IOException- if the JSON string is invalid with respect to KeystoreImportResponse
-
toJson
Convert an instance of KeystoreImportResponse to an JSON string- Returns:
- JSON string
-