java.lang.Object
org.codelibs.jcifs.smb.pac.PacLogonInfo
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 Summary
ConstructorsConstructorDescriptionPacLogonInfo(byte[] data) Constructs a PAC logon information object from raw PAC data. -
Method Summary
Modifier and TypeMethodDescriptionshortReturns the number of failed password attempts for this user.Returns the user's domain name.SID[]Returns an array of extra SIDs associated with the user.Returns the user's primary group SID.SID[]Returns an array of group SIDs the user belongs to.Returns the user's home directory path.Returns the user's home drive letter.Returns the time when the user's session will be forcibly terminated.Returns the user's logoff time.shortReturns the number of successful logons for this user.Returns the path to the user's logon script.Returns the user's logon time.Returns the path to the user's profile.Returns the earliest time when the user can change their password.Returns the time when the user's password was last changed.Returns the time when the user must change their password.SID[]Returns an array of resource group SIDs the user belongs to.Returns the name of the server that authenticated the user.intReturns the user account control flags.Returns the user's display name.intReturns the user flags indicating PAC content.Returns the user's account name.Returns the user's Security Identifier (SID).
-
Constructor Details
-
PacLogonInfo
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
Returns the user's logon time.- Returns:
- the logon timestamp
-
getLogoffTime
Returns the user's logoff time.- Returns:
- the logoff timestamp
-
getKickOffTime
Returns the time when the user's session will be forcibly terminated.- Returns:
- the kick off timestamp
-
getPwdLastChangeTime
Returns the time when the user's password was last changed.- Returns:
- the password last change timestamp
-
getPwdCanChangeTime
Returns the earliest time when the user can change their password.- Returns:
- the password can change timestamp
-
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
Returns the user's account name.- Returns:
- the user name
-
getUserDisplayName
Returns the user's display name.- Returns:
- the user display name
-
getLogonScript
Returns the path to the user's logon script.- Returns:
- the logon script path
-
getProfilePath
Returns the path to the user's profile.- Returns:
- the profile path
-
getHomeDirectory
Returns the user's home directory path.- Returns:
- the home directory path
-
getHomeDrive
Returns the user's home drive letter.- Returns:
- the home drive
-
getServerName
Returns the name of the server that authenticated the user.- Returns:
- the server name
-
getDomainName
Returns the user's domain name.- Returns:
- the domain name
-
getUserSid
Returns the user's Security Identifier (SID).- Returns:
- the user SID
-
getGroupSid
Returns the user's primary group SID.- Returns:
- the primary group SID
-
getGroupSids
Returns an array of group SIDs the user belongs to.- Returns:
- the group SIDs array
-
getResourceGroupSids
Returns an array of resource group SIDs the user belongs to.- Returns:
- the resource group SIDs array
-
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
-