Class AliasAnalysis
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.AliasAnalysis
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AliasAnalysis
extends Object
Detected algorithm and purpose for a single keystore alias (no key material).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumPurpose derived from the certificate's X.509 KeyUsage: ENCRYPT_DECRYPT, SIGN_VERIFY, or AMBIGUOUS (KeyUsage absent or spanning both families). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeyUsageItem(String keyUsageItem) detectedPurpose(AliasAnalysis.DetectedPurposeEnum detectedPurpose) booleanstatic AliasAnalysisCreate an instance of AliasAnalysis given an JSON stringDetected complete algorithm identifier.getAlias()The keystore alias.Purpose derived from the certificate's X.509 KeyUsage: ENCRYPT_DECRYPT, SIGN_VERIFY, or AMBIGUOUS (KeyUsage absent or spanning both families).The wire value ofdetectedPurpose: what the server sent, verbatim.The KeyUsage-derived key operations (empty when AMBIGUOUS).getKid()The projected Stable KID the alias would receive on import (collision-time disambiguation is applied only at import).True for a private-key entry; false for a trusted-certificate-only alias.inthashCode()privateKeyPresent(Boolean privateKeyPresent) voidsetAlgorithm(String algorithm) voidvoidsetDetectedPurpose(AliasAnalysis.DetectedPurposeEnum detectedPurpose) voidsetKeyUsage(List<String> keyUsage) voidvoidsetPrivateKeyPresent(Boolean privateKeyPresent) toJson()Convert an instance of AliasAnalysis 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_ALGORITHM
- See Also:
-
SERIALIZED_NAME_ALIAS
- See Also:
-
SERIALIZED_NAME_DETECTED_PURPOSE
- See Also:
-
SERIALIZED_NAME_KEY_USAGE
- See Also:
-
SERIALIZED_NAME_KID
- See Also:
-
SERIALIZED_NAME_PRIVATE_KEY_PRESENT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AliasAnalysis
public AliasAnalysis()
-
-
Method Details
-
getDetectedPurposeAsString
The wire value ofdetectedPurpose: 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
getDetectedPurpose()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
-
algorithm
-
getAlgorithm
Detected complete algorithm identifier.- Returns:
- algorithm
-
setAlgorithm
-
alias
-
getAlias
The keystore alias.- Returns:
- alias
-
setAlias
-
detectedPurpose
-
getDetectedPurpose
Purpose derived from the certificate's X.509 KeyUsage: ENCRYPT_DECRYPT, SIGN_VERIFY, or AMBIGUOUS (KeyUsage absent or spanning both families).- Returns:
- detectedPurpose
-
setDetectedPurpose
-
keyUsage
-
addKeyUsageItem
-
getKeyUsage
The KeyUsage-derived key operations (empty when AMBIGUOUS). Never key material.- Returns:
- keyUsage
-
setKeyUsage
-
kid
-
getKid
The projected Stable KID the alias would receive on import (collision-time disambiguation is applied only at import).- Returns:
- kid
-
setKid
-
privateKeyPresent
-
getPrivateKeyPresent
True for a private-key entry; false for a trusted-certificate-only alias.- Returns:
- privateKeyPresent
-
setPrivateKeyPresent
-
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 AliasAnalysis
-
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 AliasAnalysis
-
fromJson
Create an instance of AliasAnalysis given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AliasAnalysis
- Throws:
IOException- if the JSON string is invalid with respect to AliasAnalysis
-
toJson
Convert an instance of AliasAnalysis to an JSON string- Returns:
- JSON string
-