Class AccountAuthenticatorResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AccountAuthenticatorResponse extends Object
One of the person's authenticators. Never carries a credential id, a public key, an attestation statement or a secret.
  • Field Details

  • Constructor Details

    • AccountAuthenticatorResponse

      public AccountAuthenticatorResponse()
  • Method Details

    • getKindAsString

      public String getKindAsString()
      The wire value of kind: 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 getKind() 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
    • authenticatorId

      public AccountAuthenticatorResponse authenticatorId(@Nonnull UUID authenticatorId)
    • getAuthenticatorId

      @Nonnull public UUID getAuthenticatorId()
      The opaque authenticator id the platform assigned; never the WebAuthn credential id
      Returns:
      authenticatorId
    • setAuthenticatorId

      public void setAuthenticatorId(@Nonnull UUID authenticatorId)
    • kind

    • getKind

      @Nonnull public AccountAuthenticatorResponse.KindEnum getKind()
      The authenticator kind
      Returns:
      kind
    • setKind

      public void setKind(@Nonnull AccountAuthenticatorResponse.KindEnum kind)
    • displayName

      public AccountAuthenticatorResponse displayName(@Nullable String displayName)
    • getDisplayName

      @Nullable public String getDisplayName()
      The name the person gave the passkey; null for TOTP
      Returns:
      displayName
    • setDisplayName

      public void setDisplayName(@Nullable String displayName)
    • createdAt

      public AccountAuthenticatorResponse createdAt(@Nonnull OffsetDateTime createdAt)
    • getCreatedAt

      @Nonnull public OffsetDateTime getCreatedAt()
      When it was registered (TOTP: when its enrolment completed)
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nonnull OffsetDateTime createdAt)
    • lastUsedAt

      public AccountAuthenticatorResponse lastUsedAt(@Nullable OffsetDateTime lastUsedAt)
    • getLastUsedAt

      @Nullable public OffsetDateTime getLastUsedAt()
      When it last signed in; null when it never has
      Returns:
      lastUsedAt
    • setLastUsedAt

      public void setLastUsedAt(@Nullable OffsetDateTime lastUsedAt)
    • properties

      public AccountAuthenticatorResponse properties(@Nonnull AccountAuthenticatorProperties properties)
    • getProperties

      @Nonnull public AccountAuthenticatorProperties getProperties()
      The capability properties
      Returns:
      properties
    • setProperties

      public void setProperties(@Nonnull AccountAuthenticatorProperties properties)
    • rpId

      public AccountAuthenticatorResponse rpId(@Nullable String rpId)
    • getRpId

      @Nullable public String getRpId()
      Passkeys only: the host name the passkey was registered for (its WebAuthn relying party identifier). Absent for an authenticator app, and when the account service did not state it.
      Returns:
      rpId
    • setRpId

      public void setRpId(@Nullable String rpId)
    • registeredForCurrentRpId

      public AccountAuthenticatorResponse registeredForCurrentRpId(@Nullable Boolean registeredForCurrentRpId)
    • getRegisteredForCurrentRpId

      @Nullable public Boolean getRegisteredForCurrentRpId()
      Passkeys only: whether the passkey was registered for this deployment's current host name. A passkey registered for another host name (the deployment's host name changed since) is listed, can be renamed or removed, and is never offered at sign-in: a browser uses a passkey only on the host name it was registered for. Absent for an authenticator app, and when the account service did not state it: absence never means false.
      Returns:
      registeredForCurrentRpId
    • setRegisteredForCurrentRpId

      public void setRegisteredForCurrentRpId(@Nullable Boolean registeredForCurrentRpId)
    • 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 AccountAuthenticatorResponse
    • 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 AccountAuthenticatorResponse
    • fromJson

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

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