Class User

java.lang.Object
io.hanko.sdk.webauthn.api.User
Direct Known Subclasses:
AuthenticationInitializationUser, RegistrationInitializationUser

public class User extends Object
Base representation of a user on whose behalf registration and authentication are performed with the Hanko API.
  • Field Details

    • id

      protected String id
      The ID of the user.
    • name

      protected String name
      The name of the user.
    • displayName

      protected String displayName
      The displayName of the user.
  • Constructor Details

    • User

      public User()
      Construct a User.
    • User

      public User(String id, String name, String displayName)
      Construct a user
      Parameters:
      id - the ID of the user
      name - the name of the user
      displayName - the displayName of the user
  • Method Details

    • getId

      public String getId()
      Get the user id.
      Returns:
      the user id as a String
    • setId

      public void setId(String id)
      Set the user id.
      Parameters:
      id - the user ID as a String