Class AssetBlock
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.AssetBlock
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AssetBlock
extends Object
Cryptographic Asset REFERENCE. The use case points at a key it does not own: status is the key's own projected lifecycle state, resolved live and independent of the aggregate's status, and role is the part this key plays in this use case. algorithm reflects the key's current-PRIMARY material version (may change across rotations; null when the key has no PRIMARY material).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AssetBlockCreate an instance of AssetBlock given an JSON stringAlgorithm of the key's current-PRIMARY materialIdentity (key_aliases.id) of the key the Key ID named when the use case was created.getKid()Stable KID of the referenced keygetRole()Role this key plays in the use caseThe referenced key's own projected lifecycle status.inthashCode()keyIdentity(UUID keyIdentity) voidsetAlgorithm(String algorithm) voidsetKeyIdentity(UUID keyIdentity) voidvoidvoidtoJson()Convert an instance of AssetBlock 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_KEY_IDENTITY
- See Also:
-
SERIALIZED_NAME_KID
- See Also:
-
SERIALIZED_NAME_ROLE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AssetBlock
public AssetBlock()
-
-
Method Details
-
algorithm
-
getAlgorithm
Algorithm of the key's current-PRIMARY material- Returns:
- algorithm
-
setAlgorithm
-
keyIdentity
-
getKeyIdentity
Identity (key_aliases.id) of the key the Key ID named when the use case was created. It does not follow the Key ID: after that key is destroyed and the Key ID reused, the asset still names the destroyed key.- Returns:
- keyIdentity
-
setKeyIdentity
-
kid
-
getKid
Stable KID of the referenced key- Returns:
- kid
-
setKid
-
role
-
getRole
Role this key plays in the use case- Returns:
- role
-
setRole
-
status
-
getStatus
The referenced key's own projected lifecycle status. An ARCHIVED or DELETED_LOGICAL key does NOT suspend or revoke the use case that names it.- Returns:
- status
-
setStatus
-
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 AssetBlock
-
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 AssetBlock
-
fromJson
Create an instance of AssetBlock given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AssetBlock
- Throws:
IOException- if the JSON string is invalid with respect to AssetBlock
-
toJson
Convert an instance of AssetBlock to an JSON string- Returns:
- JSON string
-