Class User.Builder
java.lang.Object
net.shibboleth.idp.plugin.authn.duo.model.User.Builder
- Enclosing class:
- User
The builder used to create a threadsafe instance of this class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAdditional properties.private IntegerCreation time.private StringEmail address.private BooleanEnrollment flag..private StringFirst name.private ObjectLast directory sync time.private IntegerLast login time.private StringLast name.private StringLockout reason..private StringNotes.private StringReal name.private StringStatus.Registrered U2F tokens..private StringUser ID.private StringUsername.private List<WebAuthnCredential>WebAuthn tokens. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the object.withAdditionalProperty(String name, Object value) Adds an additional properywithCreated(Integer createdAt) Adds user creation time.Adds email address.withFirstname(String firstnameIn) Adds first name.withIsEnrolled(Boolean isEnrolled) Adds enrollment flag.withLastDirectorySync(Object dirSync) Adds last directory sync time.withLastLogin(Integer lastLoginAt) Adds last login time.withLastname(String lastnameIn) Adds last name.withLockoutReason(String lockoutReasonIn) Adds account lockout reason.Adds notes.withRealname(String realnameIn) Adds real name.withStatus(String statusIn) Adds status.withU2ftokens(List<U2ftoken> tokens) Adds list of U2F tokenswithUserId(String id) Adds user ID.withUsername(String uname) Adds username.withWebAuthnCredentials(List<WebAuthnCredential> credentials) Adds list of WebAuthn credentials.
-
Field Details
-
created
Creation time. -
email
Email address. -
firstname
First name. -
enrolled
Enrollment flag.. -
lastDirectorySync
Last directory sync time. -
lastLogin
Last login time. -
lastname
Last name. -
lockoutReason
Lockout reason.. -
notes
Notes. -
realname
Real name. -
status
Status. -
u2ftokens
Registrered U2F tokens.. -
userId
User ID. -
username
Username. -
webAuthnCredentials
WebAuthn tokens. -
additionalProperties
Additional properties.
-
-
Constructor Details
-
Builder
private Builder()Constructor.
-
-
Method Details
-
withCreated
Adds user creation time.- Parameters:
createdAt- creation time- Returns:
- this builder
-
withEmail
Adds email address.- Parameters:
emailIn- email address- Returns:
- this builder
-
withFirstname
Adds first name.- Parameters:
firstnameIn- first name- Returns:
- this builder
-
withIsEnrolled
Adds enrollment flag.- Parameters:
isEnrolled- enrollment flag- Returns:
- this builder
-
withLastDirectorySync
Adds last directory sync time.- Parameters:
dirSync- sync time- Returns:
- this builder
-
withLastLogin
Adds last login time.- Parameters:
lastLoginAt- last login time- Returns:
- this builder
-
withLastname
Adds last name.- Parameters:
lastnameIn- last name- Returns:
- this builder
-
withLockoutReason
Adds account lockout reason.- Parameters:
lockoutReasonIn- lockout reason- Returns:
- this builder
-
withNotes
Adds notes.- Parameters:
notesIn- notes- Returns:
- this builder
-
withRealname
Adds real name.- Parameters:
realnameIn- real name- Returns:
- this builder
-
withStatus
Adds status.- Parameters:
statusIn- status- Returns:
- this builder
-
withU2ftokens
Adds list of U2F tokens- Parameters:
tokens- U2F tokens- Returns:
- this builder
-
withUserId
Adds user ID.- Parameters:
id- user ID- Returns:
- this builder
-
withUsername
Adds username.- Parameters:
uname- username- Returns:
- this builder
-
withWebAuthnCredentials
Adds list of WebAuthn credentials.- Parameters:
credentials- WebAuthn credentials- Returns:
- this builder
-
withAdditionalProperty
Adds an additional propery- Parameters:
name- property namevalue- property value- Returns:
- this builder
-
build
Build the object.- Returns:
- built object
-