Module jcifs

Class PacLogonInfo

java.lang.Object
org.codelibs.jcifs.smb.pac.PacLogonInfo

public class PacLogonInfo extends Object
Contains user logon information from a PAC (Privilege Attribute Certificate). This class parses and provides access to user authentication and authorization data from Kerberos tickets, including user identity, group memberships, and logon metadata.
  • Constructor Details

    • PacLogonInfo

      public PacLogonInfo(byte[] data) throws PACDecodingException
      Constructs a PAC logon information object from raw PAC data.
      Parameters:
      data - the raw PAC logon info buffer data
      Throws:
      PACDecodingException - if the data is malformed or invalid
  • Method Details

    • getLogonTime

      public Date getLogonTime()
      Returns the user's logon time.
      Returns:
      the logon timestamp
    • getLogoffTime

      public Date getLogoffTime()
      Returns the user's logoff time.
      Returns:
      the logoff timestamp
    • getKickOffTime

      public Date getKickOffTime()
      Returns the time when the user's session will be forcibly terminated.
      Returns:
      the kick off timestamp
    • getPwdLastChangeTime

      public Date getPwdLastChangeTime()
      Returns the time when the user's password was last changed.
      Returns:
      the password last change timestamp
    • getPwdCanChangeTime

      public Date getPwdCanChangeTime()
      Returns the earliest time when the user can change their password.
      Returns:
      the password can change timestamp
    • getPwdMustChangeTime

      public Date getPwdMustChangeTime()
      Returns the time when the user must change their password.
      Returns:
      the password must change timestamp
    • getLogonCount

      public short getLogonCount()
      Returns the number of successful logons for this user.
      Returns:
      the logon count
    • getBadPasswordCount

      public short getBadPasswordCount()
      Returns the number of failed password attempts for this user.
      Returns:
      the bad password count
    • getUserName

      public String getUserName()
      Returns the user's account name.
      Returns:
      the user name
    • getUserDisplayName

      public String getUserDisplayName()
      Returns the user's display name.
      Returns:
      the user display name
    • getLogonScript

      public String getLogonScript()
      Returns the path to the user's logon script.
      Returns:
      the logon script path
    • getProfilePath

      public String getProfilePath()
      Returns the path to the user's profile.
      Returns:
      the profile path
    • getHomeDirectory

      public String getHomeDirectory()
      Returns the user's home directory path.
      Returns:
      the home directory path
    • getHomeDrive

      public String getHomeDrive()
      Returns the user's home drive letter.
      Returns:
      the home drive
    • getServerName

      public String getServerName()
      Returns the name of the server that authenticated the user.
      Returns:
      the server name
    • getDomainName

      public String getDomainName()
      Returns the user's domain name.
      Returns:
      the domain name
    • getUserSid

      public SID getUserSid()
      Returns the user's Security Identifier (SID).
      Returns:
      the user SID
    • getGroupSid

      public SID getGroupSid()
      Returns the user's primary group SID.
      Returns:
      the primary group SID
    • getGroupSids

      public SID[] getGroupSids()
      Returns an array of group SIDs the user belongs to.
      Returns:
      the group SIDs array
    • getResourceGroupSids

      public SID[] getResourceGroupSids()
      Returns an array of resource group SIDs the user belongs to.
      Returns:
      the resource group SIDs array
    • getExtraSids

      public SID[] getExtraSids()
      Returns an array of extra SIDs associated with the user.
      Returns:
      the extra SIDs array
    • getUserAccountControl

      public int getUserAccountControl()
      Returns the user account control flags.
      Returns:
      the user account control value
    • getUserFlags

      public int getUserFlags()
      Returns the user flags indicating PAC content.
      Returns:
      the user flags value