Class CredentialBlock
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.CredentialBlock
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CredentialBlock
extends Object
Actor Credential embedded summary. clientSecret is plaintext on 201 only.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncredentialId(UUID credentialId) booleanstatic CredentialBlockCreate an instance of CredentialBlock given an JSON stringGet clientIdPlaintext OAuth2 client_credentials secret.Get credentialIdGet mechanisminthashCode()voidsetClientId(String clientId) voidsetCredentialId(UUID credentialId) voidsetMechanism(String mechanism) toJson()Convert an instance of CredentialBlock 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_CLIENT_ID
- See Also:
-
SERIALIZED_NAME_CLIENT_SECRET
- See Also:
-
SERIALIZED_NAME_CREDENTIAL_ID
- See Also:
-
SERIALIZED_NAME_MECHANISM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CredentialBlock
public CredentialBlock() -
CredentialBlock
-
-
Method Details
-
clientId
-
getClientId
Get clientId- Returns:
- clientId
-
setClientId
-
getClientSecret
Plaintext OAuth2 client_credentials secret. Returned ONCE on 201 create response only; absent (null + suppressed by @JsonInclude(NON_NULL)) on GET responses. Server-generated — clients MUST NOT send this field. BCrypt hash persisted server-side; plaintext is NOT recoverable. Capture immediately.- Returns:
- clientSecret
-
credentialId
-
getCredentialId
Get credentialId- Returns:
- credentialId
-
setCredentialId
-
mechanism
-
getMechanism
Get mechanism- Returns:
- mechanism
-
setMechanism
-
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 CredentialBlock
-
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 CredentialBlock
-
fromJson
Create an instance of CredentialBlock given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CredentialBlock
- Throws:
IOException- if the JSON string is invalid with respect to CredentialBlock
-
toJson
Convert an instance of CredentialBlock to an JSON string- Returns:
- JSON string
-