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.
  • Field Details

  • Constructor Details

    • CredentialBlock

      public CredentialBlock()
    • CredentialBlock

      public CredentialBlock(String clientSecret)
  • Method Details

    • clientId

      public CredentialBlock clientId(@Nullable String clientId)
    • getClientId

      @Nullable public String getClientId()
      Get clientId
      Returns:
      clientId
    • setClientId

      public void setClientId(@Nullable String clientId)
    • getClientSecret

      @Nullable public String 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

      public CredentialBlock credentialId(@Nullable UUID credentialId)
    • getCredentialId

      @Nullable public UUID getCredentialId()
      Get credentialId
      Returns:
      credentialId
    • setCredentialId

      public void setCredentialId(@Nullable UUID credentialId)
    • mechanism

      public CredentialBlock mechanism(@Nullable String mechanism)
    • getMechanism

      @Nullable public String getMechanism()
      Get mechanism
      Returns:
      mechanism
    • setMechanism

      public void setMechanism(@Nullable String mechanism)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 of validateJsonElement(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

      public static CredentialBlock fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of CredentialBlock to an JSON string
      Returns:
      JSON string