Class RecentLoginHistory

  • All Implemented Interfaces:
    java.io.Serializable

    @NotMutable
    @ThreadSafety(level=COMPLETELY_THREADSAFE)
    public final class RecentLoginHistory
    extends java.lang.Object
    implements java.io.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:
    GetRecentLoginHistoryRequestControl, GetRecentLoginHistoryResponseControl, Serialized Form
    • Constructor Detail

      • RecentLoginHistory

        public RecentLoginHistory​(@Nullable
                                  java.util.Collection<RecentLoginHistoryAttempt> successfulAttempts,
                                  @Nullable
                                  java.util.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 be null or empty if there were no recent successful attempts.
        failedAttempts - A list of recent failed authentication attempts. It may be null or empty if there were no recent failed attempts.
      • RecentLoginHistory

        public RecentLoginHistory​(@NotNull
                                  JSONObject jsonObject)
                           throws LDAPException
        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 be null.
        Throws:
        LDAPException - If a problem occurs while attempting to decode the provided JSON object as a recent login history.
    • Method Detail

      • asJSONObject

        @NotNull
        public JSONObject 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

        @NotNull
        public java.lang.String toString()
        Retrieves a string representation of this recent login history.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this recent login history.