Class RecentLoginHistory
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.controls.RecentLoginHistory
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class RecentLoginHistory
extends Object
implements Serializable
This class provides a data structure with information about recent successful
and failed login attempts for a user.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRecentLoginHistory(JSONObject jsonObject) Creates a new recent login history that is decoded from the provided JSON object.RecentLoginHistory(Collection<RecentLoginHistoryAttempt> successfulAttempts, Collection<RecentLoginHistoryAttempt> failedAttempts) Creates a new recent login history with the provided sets of successful and failed attempts. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a JSON object with an encoded representation of this recent login history.Retrieves the set of recent failed login attempts.Retrieves the set of recent successful login attempts.toString()Retrieves a string representation of this recent login history.
-
Constructor Details
-
RecentLoginHistory
public RecentLoginHistory(@Nullable Collection<RecentLoginHistoryAttempt> successfulAttempts, @Nullable Collection<RecentLoginHistoryAttempt> failedAttempts) Creates a new recent login history with the provided sets of successful and failed attempts.- Parameters:
successfulAttempts- A list of recent successful authentication attempts. It may benullor empty if there were no recent successful attempts.failedAttempts- A list of recent failed authentication attempts. It may benullor empty if there were no recent failed attempts.
-
RecentLoginHistory
Creates a new recent login history that is decoded from the provided JSON object.- Parameters:
jsonObject- A JSON object containing an encoded representation of the recent login history. It must not benull.- Throws:
LDAPException- If a problem occurs while attempting to decode the provided JSON object as a recent login history.
-
-
Method Details
-
getSuccessfulAttempts
Retrieves the set of recent successful login attempts.- Returns:
- The set of recent successful login attempts.
-
getFailedAttempts
Retrieves the set of recent failed login attempts.- Returns:
- The set of recent failed login attempts.
-
asJSONObject
Retrieves a JSON object with an encoded representation of this recent login history.- Returns:
- A JSON object with an encoded representation of this recent long history.
-
toString
Retrieves a string representation of this recent login history.
-