Class AuthorizationChallengePath

java.lang.Object
co.ankatech.keymanagement.client.auth.model.AuthorizationChallengePath

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AuthorizationChallengePath extends Object
An alternative that would admit
  • Field Details

  • Constructor Details

    • AuthorizationChallengePath

      public AuthorizationChallengePath()
  • Method Details

    • getTypeAsString

      public String getTypeAsString()
      The wire value of type: 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 getType() reads UNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel.
      • For an absent member, null.
      Returns:
      the wire value, or null when the member is absent
    • type

    • getType

      @Nonnull public AuthorizationChallengePath.TypeEnum getType()
      The kind of the path. passkey-enrolment is taken with passkey-registration-options and passkey-registration; totp-enrolment with totp-enrolment and totp-enrolment-verification, after a password the person proved or chose; federated with the action federated and this path's idp_id, in the browser.
      Returns:
      type
    • setType

      public void setType(@Nonnull AuthorizationChallengePath.TypeEnum type)
    • requiredProperties

      public AuthorizationChallengePath requiredProperties(@Nonnull List<String> requiredProperties)
    • addRequiredPropertiesItem

      public AuthorizationChallengePath addRequiredPropertiesItem(String requiredPropertiesItem)
    • getRequiredProperties

      @Nonnull public List<String> getRequiredProperties()
      The capability properties the authenticator must hold
      Returns:
      requiredProperties
    • setRequiredProperties

      public void setRequiredProperties(@Nonnull List<String> requiredProperties)
    • missingProperties

      public AuthorizationChallengePath missingProperties(@Nullable List<String> missingProperties)
    • addMissingPropertiesItem

      public AuthorizationChallengePath addMissingPropertiesItem(String missingPropertiesItem)
    • getMissingProperties

      @Nullable public List<String> getMissingProperties()
      The required properties the passkey just used lacks
      Returns:
      missingProperties
    • setMissingProperties

      public void setMissingProperties(@Nullable List<String> missingProperties)
    • idpId

      public AuthorizationChallengePath idpId(@Nullable UUID idpId)
    • getIdpId

      @Nullable public UUID getIdpId()
      type=federated only: the identity provider to sign in through, presented as idp_id with the action federated
      Returns:
      idpId
    • setIdpId

      public void setIdpId(@Nullable UUID idpId)
    • displayName

      public AuthorizationChallengePath displayName(@Nullable String displayName)
    • getDisplayName

      @Nullable public String getDisplayName()
      type=federated only: the name the person recognises the identity provider by
      Returns:
      displayName
    • setDisplayName

      public void setDisplayName(@Nullable String displayName)
    • 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 AuthorizationChallengePath
    • 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 AuthorizationChallengePath
    • fromJson

      public static AuthorizationChallengePath fromJson(String jsonString) throws IOException
      Create an instance of AuthorizationChallengePath given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of AuthorizationChallengePath
      Throws:
      IOException - if the JSON string is invalid with respect to AuthorizationChallengePath
    • toJson

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