Class User.Builder

java.lang.Object
net.shibboleth.idp.plugin.authn.duo.model.User.Builder
Enclosing class:
User

public static final class User.Builder extends Object
The builder used to create a threadsafe instance of this class.
  • Field Details

    • created

      @Nullable private Integer created
      Creation time.
    • email

      @Nullable private String email
      Email address.
    • firstname

      @Nullable private String firstname
      First name.
    • enrolled

      @Nullable private Boolean enrolled
      Enrollment flag..
    • lastDirectorySync

      @Nullable private Object lastDirectorySync
      Last directory sync time.
    • lastLogin

      @Nullable private Integer lastLogin
      Last login time.
    • lastname

      @Nullable private String lastname
      Last name.
    • lockoutReason

      @Nullable private String lockoutReason
      Lockout reason..
    • notes

      @Nullable private String notes
      Notes.
    • realname

      @Nullable private String realname
      Real name.
    • status

      @Nullable private String status
      Status.
    • u2ftokens

      @Nonnull private List<U2ftoken> u2ftokens
      Registrered U2F tokens..
    • userId

      @Nullable private String userId
      User ID.
    • username

      @Nullable private String username
      Username.
    • webAuthnCredentials

      @Nonnull private List<WebAuthnCredential> webAuthnCredentials
      WebAuthn tokens.
    • additionalProperties

      @Nonnull private final Map<String,Object> additionalProperties
      Additional properties.
  • Constructor Details

    • Builder

      private Builder()
      Constructor.
  • Method Details

    • withCreated

      public User.Builder withCreated(@Nullable Integer createdAt)
      Adds user creation time.
      Parameters:
      createdAt - creation time
      Returns:
      this builder
    • withEmail

      public User.Builder withEmail(@Nullable String emailIn)
      Adds email address.
      Parameters:
      emailIn - email address
      Returns:
      this builder
    • withFirstname

      public User.Builder withFirstname(@Nullable String firstnameIn)
      Adds first name.
      Parameters:
      firstnameIn - first name
      Returns:
      this builder
    • withIsEnrolled

      public User.Builder withIsEnrolled(@Nullable Boolean isEnrolled)
      Adds enrollment flag.
      Parameters:
      isEnrolled - enrollment flag
      Returns:
      this builder
    • withLastDirectorySync

      public User.Builder withLastDirectorySync(@Nullable Object dirSync)
      Adds last directory sync time.
      Parameters:
      dirSync - sync time
      Returns:
      this builder
    • withLastLogin

      public User.Builder withLastLogin(@Nullable Integer lastLoginAt)
      Adds last login time.
      Parameters:
      lastLoginAt - last login time
      Returns:
      this builder
    • withLastname

      public User.Builder withLastname(@Nullable String lastnameIn)
      Adds last name.
      Parameters:
      lastnameIn - last name
      Returns:
      this builder
    • withLockoutReason

      public User.Builder withLockoutReason(@Nullable String lockoutReasonIn)
      Adds account lockout reason.
      Parameters:
      lockoutReasonIn - lockout reason
      Returns:
      this builder
    • withNotes

      public User.Builder withNotes(@Nullable String notesIn)
      Adds notes.
      Parameters:
      notesIn - notes
      Returns:
      this builder
    • withRealname

      public User.Builder withRealname(@Nullable String realnameIn)
      Adds real name.
      Parameters:
      realnameIn - real name
      Returns:
      this builder
    • withStatus

      public User.Builder withStatus(@Nullable String statusIn)
      Adds status.
      Parameters:
      statusIn - status
      Returns:
      this builder
    • withU2ftokens

      public User.Builder withU2ftokens(@Nullable List<U2ftoken> tokens)
      Adds list of U2F tokens
      Parameters:
      tokens - U2F tokens
      Returns:
      this builder
    • withUserId

      public User.Builder withUserId(@Nullable String id)
      Adds user ID.
      Parameters:
      id - user ID
      Returns:
      this builder
    • withUsername

      public User.Builder withUsername(@Nullable String uname)
      Adds username.
      Parameters:
      uname - username
      Returns:
      this builder
    • withWebAuthnCredentials

      public User.Builder withWebAuthnCredentials(@Nullable List<WebAuthnCredential> credentials)
      Adds list of WebAuthn credentials.
      Parameters:
      credentials - WebAuthn credentials
      Returns:
      this builder
    • withAdditionalProperty

      public User.Builder withAdditionalProperty(@Nonnull String name, @Nullable Object value)
      Adds an additional propery
      Parameters:
      name - property name
      value - property value
      Returns:
      this builder
    • build

      public User build()
      Build the object.
      Returns:
      built object