Class User
java.lang.Object
net.shibboleth.idp.plugin.authn.duo.model.User
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe builder used to create a threadsafe instance of this class. -
Field Summary
FieldsModifier and TypeFieldDescriptionAny additional properties not explicitly captured by this class are added to this map.private final IntegerThe user's creation date as a UNIX timestamp .private final StringThe user's email address.private final BooleanIs true if the user has a phone, hardware token, U2F token, WebAuthn security key, or other WebAuthn method available for authentication.private final StringThe user's given name.private final ObjectAn 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.private final IntegerAn integer indicating the last time this user logged in, as a Unix timestamp, or null if the user has not logged in.private final StringThe user's surname.private final StringThe user's lockout_reason.private final StringNotes about this user.private final StringThe user's real name (or full name).static final longGenerated serialUID.private final StringThe user's status.A list of U2F tokens that this user can use.private final StringThe user's ID.private final StringThe user's username.private final List<WebAuthnCredential>The list of WebAuthn authenticators that this user can use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic User.Builderbuilder()Get the builder for this class.Get any additional properties not explicitly captured by this class.Get the user's creation date as a UNIX timestamp.getEmail()Get the user's email address.Get The user's given name.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.Get an integer indicating the last time this user logged in, as a Unix timestamp, or null if the user has not logged in.Get the user's surname.Get the user's lockout_reason.getNotes()Get notes about this user.Get the user's real name (or full name).Get the user's status.Get a list of U2F tokens that this user can use.Get the user's ID.Get the user's username.Get a list of WebAuthn authenticators that this user can use.Is true if the user has a phone, hardware token, U2F token, WebAuthn security key, or other WebAuthn method available for authentication.
-
Field Details
-
serialVersionUID
public static final long serialVersionUIDGenerated serialUID.- See Also:
-
created
The user's creation date as a UNIX timestamp . -
email
The user's email address. -
firstname
The user's given name. -
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
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
An integer indicating the last time this user logged in, as a Unix timestamp, or null if the user has not logged in. -
lastname
The user's surname. -
lockoutReason
The user's lockout_reason. -
notes
Notes about this user. Viewable in the Duo Admin Panel . -
realname
The user's real name (or full name). -
status
The user's status. -
u2ftokens
A list of U2F tokens that this user can use. -
userId
The user's ID. -
username
The user's username. -
webAuthnCredentials
The list of WebAuthn authenticators that this user can use. -
additionalProperties
Any additional properties not explicitly captured by this class are added to this map.
-
-
Constructor Details
-
User
Constructor.- Parameters:
builder- the builder
-
-
Method Details
-
getCreated
Get the user's creation date as a UNIX timestamp.- Returns:
- creation date
-
getEmail
Get the user's email address.- Returns:
- email address
-
getFirstname
Get The user's given name.- Returns:
- given name
-
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
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
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
Get the user's surname.- Returns:
- the surname
-
getLockoutReason
Get the user's lockout_reason.- Returns:
- the reason the user was locked out.
-
getNotes
Get notes about this user. Viewable in the Duo Admin Panel.- Returns:
- the notes
-
getRealname
Get the user's real name (or full name).- Returns:
- the user's real name
-
getStatus
Get the user's status.- Returns:
- the status
-
getU2ftokens
Get a list of U2F tokens that this user can use.- Returns:
- the list of U2F tokens
-
getUserId
Get the user's ID.- Returns:
- the users id.
-
getUsername
Get the user's username.- Returns:
- the user's username
-
getWebAuthnCredentials
Get a list of WebAuthn authenticators that this user can use.- Returns:
- the list of WebAuthn credentials to the user can use
-
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
Get the builder for this class.- Returns:
- the builder
-