Class AccountAuthenticatorsResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AccountAuthenticatorsResponse extends Object
The signed-in person's authenticators
  • Field Details

  • Constructor Details

    • AccountAuthenticatorsResponse

      public AccountAuthenticatorsResponse()
  • Method Details

    • authenticators

      public AccountAuthenticatorsResponse authenticators(@Nonnull List<AccountAuthenticatorResponse> authenticators)
    • addAuthenticatorsItem

      public AccountAuthenticatorsResponse addAuthenticatorsItem(AccountAuthenticatorResponse authenticatorsItem)
    • getAuthenticators

      @Nonnull public List<AccountAuthenticatorResponse> getAuthenticators()
      The passkeys first, then the TOTP factor, each group oldest first. Empty when the person holds none.
      Returns:
      authenticators
    • setAuthenticators

      public void setAuthenticators(@Nonnull List<AccountAuthenticatorResponse> authenticators)
    • passwordHeld

      public AccountAuthenticatorsResponse passwordHeld(@Nullable Boolean passwordHeld)
    • getPasswordHeld

      @Nullable public Boolean getPasswordHeld()
      Whether the person holds a password, the one deleteAccountPassword removes. Absent when the account service did not state it: absence never means false.
      Returns:
      passwordHeld
    • setPasswordHeld

      public void setPasswordHeld(@Nullable Boolean passwordHeld)
    • totpEnrolmentAdmitted

      public AccountAuthenticatorsResponse totpEnrolmentAdmitted(@Nullable Boolean totpEnrolmentAdmitted)
    • getTotpEnrolmentAdmitted

      @Nullable public Boolean getTotpEnrolmentAdmitted()
      Whether the person's account admits an authenticator app at all (createTotpEnrolment). False when no tenant the person enters with their own authenticators, nor the platform for a platform identity, admits password + TOTP. It does not say whether one is already held (the authenticators list does): a second enrolment is refused with 409. Absent when the account service did not state it (a release before this member): absence never means false.
      Returns:
      totpEnrolmentAdmitted
    • setTotpEnrolmentAdmitted

      public void setTotpEnrolmentAdmitted(@Nullable Boolean totpEnrolmentAdmitted)
    • passkeyEnrolmentAdmitted

      public AccountAuthenticatorsResponse passkeyEnrolmentAdmitted(@Nullable Boolean passkeyEnrolmentAdmitted)
    • getPasskeyEnrolmentAdmitted

      @Nullable public Boolean getPasskeyEnrolmentAdmitted()
      Whether the person's account admits a passkey enrolment (createPasskeyRegistrationOptions): true when a tenant the person enters with their own authenticators, or the platform for a platform administrator, accepts a passkey. False when every tenant of the person is entered through its identity provider only, so a passkey would serve no sign-in. Absent when the account service did not state it (a release before this member): absence never means false.
      Returns:
      passkeyEnrolmentAdmitted
    • setPasskeyEnrolmentAdmitted

      public void setPasskeyEnrolmentAdmitted(@Nullable Boolean passkeyEnrolmentAdmitted)
    • 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 AccountAuthenticatorsResponse
    • 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 AccountAuthenticatorsResponse
    • fromJson

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

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