Class KeyAuthorizationReferences
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeyAuthorizationReferences
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeyAuthorizationReferences
extends Object
How many authorizations reference this key, by kind. This is a reading: no key command is gated on it, and every key command remains available at every count. internalUseCases counts internal crypto use cases that are not deleted, ACTIVE and SUSPENDED alike. cryptographicExchanges counts exchanges in a non-terminal status (DRAFT, READY, ACTIVE, SUSPENDED) that name the key; a DRAFT or READY exchange references the key before its grant exists. capabilityGrants counts only standalone capability grants that are not deleted: a grant owned by an exchange or an internal use case is counted under its owner, never as a standalone grant. A wildcard grant names no key and is not counted for any key. total is the sum of the three kinds.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapabilityGrants(Integer capabilityGrants) cryptographicExchanges(Integer cryptographicExchanges) booleanstatic KeyAuthorizationReferencesCreate an instance of KeyAuthorizationReferences given an JSON stringStandalone capability grants that reference the key and are not deleted.Cryptographic exchanges in a non-terminal status (DRAFT, READY, ACTIVE, SUSPENDED) that reference the key and are not deleted.Internal crypto use cases that reference the key and are not deleted (ACTIVE or SUSPENDED).getTotal()The sum of internalUseCases, cryptographicExchanges and capabilityGrants.inthashCode()internalUseCases(Integer internalUseCases) voidsetCapabilityGrants(Integer capabilityGrants) voidsetCryptographicExchanges(Integer cryptographicExchanges) voidsetInternalUseCases(Integer internalUseCases) voidtoJson()Convert an instance of KeyAuthorizationReferences 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_CAPABILITY_GRANTS
- See Also:
-
SERIALIZED_NAME_CRYPTOGRAPHIC_EXCHANGES
- See Also:
-
SERIALIZED_NAME_INTERNAL_USE_CASES
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeyAuthorizationReferences
public KeyAuthorizationReferences()
-
-
Method Details
-
capabilityGrants
-
getCapabilityGrants
Standalone capability grants that reference the key and are not deleted. A grant owned by an exchange or an internal use case is counted under its owner, and a wildcard grant is not counted. minimum: 0- Returns:
- capabilityGrants
-
setCapabilityGrants
-
cryptographicExchanges
-
getCryptographicExchanges
Cryptographic exchanges in a non-terminal status (DRAFT, READY, ACTIVE, SUSPENDED) that reference the key and are not deleted. minimum: 0- Returns:
- cryptographicExchanges
-
setCryptographicExchanges
-
internalUseCases
-
getInternalUseCases
Internal crypto use cases that reference the key and are not deleted (ACTIVE or SUSPENDED). minimum: 0- Returns:
- internalUseCases
-
setInternalUseCases
-
total
-
getTotal
The sum of internalUseCases, cryptographicExchanges and capabilityGrants. Zero means nothing references the key. minimum: 0- Returns:
- total
-
setTotal
-
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 KeyAuthorizationReferences
-
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 KeyAuthorizationReferences
-
fromJson
Create an instance of KeyAuthorizationReferences given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeyAuthorizationReferences
- Throws:
IOException- if the JSON string is invalid with respect to KeyAuthorizationReferences
-
toJson
Convert an instance of KeyAuthorizationReferences to an JSON string- Returns:
- JSON string
-