Class KeystoreAnalysisResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeystoreAnalysisResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeystoreAnalysisResponse
extends Object
Read-only, per-alias analysis of a PKCS#12 / JKS keystore. Reports the detected algorithm and the purpose derived from each certificate's X.509 KeyUsage (or AMBIGUOUS). Contains no private key material, material UUIDs, or tenant information. Mirrors the cryptographic service's keystore analysis response.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAliasesItem(AliasAnalysis aliasesItem) aliases(List<AliasAnalysis> aliases) derivationCost(KeystoreDerivationCost derivationCost) booleanstatic KeystoreAnalysisResponseCreate an instance of KeystoreAnalysisResponse given an JSON stringOne analysis entry per keystore alias (private-key entries first).The key derivations an import of this keystore would run, against the most one import may run.inthashCode()voidsetAliases(List<AliasAnalysis> aliases) voidsetDerivationCost(KeystoreDerivationCost derivationCost) toJson()Convert an instance of KeystoreAnalysisResponse 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_ALIASES
- See Also:
-
SERIALIZED_NAME_DERIVATION_COST
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeystoreAnalysisResponse
public KeystoreAnalysisResponse()
-
-
Method Details
-
aliases
-
addAliasesItem
-
getAliases
One analysis entry per keystore alias (private-key entries first).- Returns:
- aliases
-
setAliases
-
derivationCost
-
getDerivationCost
The key derivations an import of this keystore would run, against the most one import may run. When exceedsBudget is true the import would be refused with 400 keystore-derivation-budget-exceeded: the keystore was not analysed, aliases is empty and declaredIterations is a lower bound; split it into smaller keystores and analyse each one.- Returns:
- derivationCost
-
setDerivationCost
-
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 KeystoreAnalysisResponse
-
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 KeystoreAnalysisResponse
-
fromJson
Create an instance of KeystoreAnalysisResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeystoreAnalysisResponse
- Throws:
IOException- if the JSON string is invalid with respect to KeystoreAnalysisResponse
-
toJson
Convert an instance of KeystoreAnalysisResponse to an JSON string- Returns:
- JSON string
-