java.lang.Object
net.shibboleth.idp.plugin.authn.duo.model.User

public final class User extends Object
A model object to hold the response from the Users Duo Admin API.

Those properties not explicitly listed will be included in the additionalProperties map for retrieval if required.

Since:
2.1.0
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
      Generated serialUID.
      See Also:
    • created

      @Nullable private final Integer created
      The user's creation date as a UNIX timestamp .
    • email

      @Nullable private final String email
      The user's email address.
    • firstname

      @Nullable private final String firstname
      The user's given name.
    • enrolled

      @Nullable private final Boolean enrolled
      Is true if the user has a phone, hardware token, U2F token, WebAuthn security key, or other WebAuthn method available for authentication. Otherwise, false.
    • lastDirectorySync

      @Nullable private final Object lastDirectorySync
      An integer indicating the last update to the user via directory sync as a Unix timestamp, or null if the user has never synced with an external directory or if the directory that originally created the user has been deleted from Duo.
    • lastLogin

      @Nullable private final Integer lastLogin
      An integer indicating the last time this user logged in, as a Unix timestamp, or null if the user has not logged in.
    • lastname

      @Nullable private final String lastname
      The user's surname.
    • lockoutReason

      @Nullable private final String lockoutReason
      The user's lockout_reason.
    • notes

      @Nullable private final String notes
      Notes about this user. Viewable in the Duo Admin Panel .
    • realname

      @Nullable private final String realname
      The user's real name (or full name).
    • status

      @Nullable private final String status
      The user's status.
    • u2ftokens

      @Nonnull @NotLive @Unmodifiable private final List<U2ftoken> u2ftokens
      A list of U2F tokens that this user can use.
    • userId

      @Nullable private final String userId
      The user's ID.
    • username

      @Nullable private final String username
      The user's username.
    • webAuthnCredentials

      @Nonnull @NotLive @Unmodifiable private final List<WebAuthnCredential> webAuthnCredentials
      The list of WebAuthn authenticators that this user can use.
    • additionalProperties

      @Nonnull @NotLive @Unmodifiable private final Map<String,Object> additionalProperties
      Any additional properties not explicitly captured by this class are added to this map.
  • Constructor Details

    • User

      private User(User.Builder builder)
      Constructor.
      Parameters:
      builder - the builder
  • Method Details

    • getCreated

      @Nullable public Integer getCreated()
      Get the user's creation date as a UNIX timestamp.
      Returns:
      creation date
    • getEmail

      @Nullable public String getEmail()
      Get the user's email address.
      Returns:
      email address
    • getFirstname

      @Nullable public Object getFirstname()
      Get The user's given name.
      Returns:
      given name
    • isEnrolled

      @Nullable public Boolean isEnrolled()
      Is true if the user has a phone, hardware token, U2F token, WebAuthn security key, or other WebAuthn method available for authentication. Otherwise, false.
      Returns:
      if the user has enrolled
    • getLastDirectorySync

      @Nullable public Object getLastDirectorySync()
      Get an integer indicating the last update to the user via directory sync as a Unix timestamp, or null if the user has never synced with an external directory or if the directory that originally created the user has been deleted from Duo.
      Returns:
      last directory sync.
    • getLastLogin

      @Nullable public Integer getLastLogin()
      Get an integer indicating the last time this user logged in, as a Unix timestamp, or null if the user has not logged in.
      Returns:
      last login time
    • getLastname

      @Nullable public Object getLastname()
      Get the user's surname.
      Returns:
      the surname
    • getLockoutReason

      @Nullable public Object getLockoutReason()
      Get the user's lockout_reason.
      Returns:
      the reason the user was locked out.
    • getNotes

      @Nullable public String getNotes()
      Get notes about this user. Viewable in the Duo Admin Panel.
      Returns:
      the notes
    • getRealname

      @Nullable public String getRealname()
      Get the user's real name (or full name).
      Returns:
      the user's real name
    • getStatus

      @Nullable public String getStatus()
      Get the user's status.
      Returns:
      the status
    • getU2ftokens

      @Nonnull @NotLive @Unmodifiable public List<U2ftoken> getU2ftokens()
      Get a list of U2F tokens that this user can use.
      Returns:
      the list of U2F tokens
    • getUserId

      @Nullable public String getUserId()
      Get the user's ID.
      Returns:
      the users id.
    • getUsername

      @Nullable public String getUsername()
      Get the user's username.
      Returns:
      the user's username
    • getWebAuthnCredentials

      @Nonnull @NotLive @Unmodifiable public List<WebAuthnCredential> getWebAuthnCredentials()
      Get a list of WebAuthn authenticators that this user can use.
      Returns:
      the list of WebAuthn credentials to the user can use
    • getAdditionalProperties

      @Nonnull @NotLive @Unmodifiable public Map<String,Object> getAdditionalProperties()
      Get any additional properties not explicitly captured by this class.
      Returns:
      the map of any additional properties not directly captured by this class.
    • builder

      public static User.Builder builder()
      Get the builder for this class.
      Returns:
      the builder