Class MaapiUserSession

Object
com.tailf.maapi.MaapiUserSession

public class MaapiUserSession extends Object
User session descriptor class. Objects of this class is returned by the Maapi.getUserSession(int) method.
  • Constructor Details

  • Method Details

    • getUser

      public String getUser()
      Get user name
      Returns:
      user name as string
    • getContext

      public String getContext()
      Get User session context, one of "cli" | "webui" | "netconf" | "noaaa" | any MAAPI string
      Returns:
      context as string
    • getSessionFlags

      public MaapiUserSessionFlag getSessionFlags()
      Get User session protocol
      Returns:
      flag as MaapiUserSessionFlag
    • getIPAddress

      public InetAddress getIPAddress()
      Get user session ip address as java InetAddress instance
      Returns:
      ip as InetAddress
    • getUserId

      public int getUserId()
      Get user session id
      Returns:
      usid as int
    • getLoginTime

      public Date getLoginTime()
      Get user session login time
      Returns:
      login time as Date
    • getSnmpV3Context

      public String getSnmpV3Context()
      Get snmpv3 context if available
      Returns:
      snmpv3 context as string
    • toString

      public String toString()
      Overrides:
      toString in class Object