psdi.app.signature

Class LoginTracking

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, LoginTrackingRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class LoginTracking
    extends Mbo
    implements LoginTrackingRemote
    Mbo object to represent LoginTracking. Stores attempts at logging in and at user verification. The maxvar LOGINTRACKING controls whether this table is written to.

    See Signature Package description.

    This is a system level object.

    There is no unique key for this object.

    The attributes in this object are as follows:

    Attribute NameDescription
    AdminUserIDIf this record is for an administrative logout, this is the UserID of the administrator who initiated the logout.
    AppFor ESIG, the application name. Foreign key to MaxApps.
    AttemptDateTimestamp of the login or verification attempt. This is the MXServer time, not the user's local time.
    AttemptResultFrom domain ATTEMPTRESULT.
    • FAILED -- Failed login or esig authentication attempt.
    • LOGIN -- Successful user login.
    • LOGOUT -- User logout.
    • RESTART -- Forced "logout" due to server shutdown.
    • SUCCESS -- Successful esig authentication.
    • TIMEOUT -- Session timed out by browser.
    ClientAddrAddress of the user's client, from getRemoteAddr.
    ClientHostName of the user's client, from getRemoteHost.
    CurrentCountThe number of sessions on this database as of the attemptdate of this Mbo. This includes all users of the system, not just the current user. See SecurityService getSessionCounter.
    KeyValue(1-7)For ESIG, indicates the record being modified. The table name in MaxApps MainTbName. Generally only one or two key values identify the record being modified.
    MaxSessionUIDThis is the maxsessionuid for anything other than a failed login attempt. On the LoginTracking table, maxsessionuid can be used for associating login and logout/timeout activities.
    NameTypically this would equal the user's full first and last name.
    ReasonFor ESIG, the reason for change.
    ServerHostHost name or IP Address of the MXServer for this session.
    ServerNameMXServer name.
    TransIDFor ESIG, the transaction ID.
    UserIDThe user ID entered when attempting to log in or perform a user verification. Foreign key to MaxUser.
    See Also:
    MaxUser.addLoginTracking(String), MXServer.getDate()
    • Constructor Detail

      • LoginTracking

        public LoginTracking(MboSet ms)
                      throws java.rmi.RemoteException
        Construct the LoginTracking object
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        CurrentCountSee SecurityService getSessionCounter
        ServerHostMXServer.getServerHost
        ServerNameMXServer.getName
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Cannot delete.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException