Class AccountAuthenticatorProperties

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AccountAuthenticatorProperties extends Object
Capability properties of an authenticator; a property is true only when it is established
  • Field Details

  • Constructor Details

    • AccountAuthenticatorProperties

      public AccountAuthenticatorProperties()
  • Method Details

    • phishingResistant

      public AccountAuthenticatorProperties phishingResistant(@Nonnull Boolean phishingResistant)
    • getPhishingResistant

      @Nonnull public Boolean getPhishingResistant()
      The proof is bound to the origin of the relying party (every passkey; never TOTP)
      Returns:
      phishingResistant
    • setPhishingResistant

      public void setPhishingResistant(@Nonnull Boolean phishingResistant)
    • userVerifying

      public AccountAuthenticatorProperties userVerifying(@Nonnull Boolean userVerifying)
    • getUserVerifying

      @Nonnull public Boolean getUserVerifying()
      The authenticator verifies the person on every use (WebAuthn UV flag)
      Returns:
      userVerifying
    • setUserVerifying

      public void setUserVerifying(@Nonnull Boolean userVerifying)
    • syncable

      public AccountAuthenticatorProperties syncable(@Nonnull Boolean syncable)
    • getSyncable

      @Nonnull public Boolean getSyncable()
      The credential may be synced to the person's other devices (WebAuthn BE flag set)
      Returns:
      syncable
    • setSyncable

      public void setSyncable(@Nonnull Boolean syncable)
    • deviceBound

      public AccountAuthenticatorProperties deviceBound(@Nonnull Boolean deviceBound)
    • getDeviceBound

      @Nonnull public Boolean getDeviceBound()
      The credential cannot leave the authenticator it was created on (BE flag clear)
      Returns:
      deviceBound
    • setDeviceBound

      public void setDeviceBound(@Nonnull Boolean deviceBound)
    • hardwareBacked

      public AccountAuthenticatorProperties hardwareBacked(@Nonnull Boolean hardwareBacked)
    • getHardwareBacked

      @Nonnull public Boolean getHardwareBacked()
      A verified attestation states a hardware key store
      Returns:
      hardwareBacked
    • setHardwareBacked

      public void setHardwareBacked(@Nonnull Boolean hardwareBacked)
    • attested

      public AccountAuthenticatorProperties attested(@Nonnull Boolean attested)
    • getAttested

      @Nonnull public Boolean getAttested()
      The attestation verified against a trust anchor of the loaded FIDO metadata
      Returns:
      attested
    • setAttested

      public void setAttested(@Nonnull Boolean attested)
    • discoverable

      public AccountAuthenticatorProperties discoverable(@Nullable Boolean discoverable)
    • getDiscoverable

      @Nullable public Boolean getDiscoverable()
      The credential is discoverable (credProps rk); null when the browser did not report it
      Returns:
      discoverable
    • setDiscoverable

      public void setDiscoverable(@Nullable Boolean discoverable)
    • 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 AccountAuthenticatorProperties
    • 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 AccountAuthenticatorProperties
    • fromJson

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

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