Package net.sf.michaelo.tomcat.pac
Class KerbValidationInfo
- java.lang.Object
-
- net.sf.michaelo.tomcat.pac.KerbValidationInfo
-
public class KerbValidationInfo extends Object
A class representing theKERB_VALIDATION_INFO
structure from MS-PAC. This implementation only parses the members which are required for the purpose of this component, everything else is skipped.
-
-
Field Summary
Fields Modifier and Type Field Description static long
EXTRA_SIDS_USER_FLAG
protected Log
logger
static long
RESOURCE_GROUP_IDS_USER_FLAG
-
Constructor Summary
Constructors Constructor Description KerbValidationInfo(byte[] infoBytes)
Parses a Kerberos validation info object from a byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEffectiveName()
List<KerbSidAndAttributes>
getExtraSids()
String
getFullName()
List<GroupMembership>
getGroupIds()
String
getHomeDirectory()
String
getHomeDirectoryDrive()
Sid
getLogonDomainId()
String
getLogonDomainName()
String
getLogonScript()
String
getLogonServer()
long
getPrimaryGroupId()
String
getProfilePath()
Sid
getResourceGroupDomainSid()
List<GroupMembership>
getResourceGroupIds()
long
getUserAccountControl()
long
getUserFlags()
long
getUserId()
-
-
-
Field Detail
-
EXTRA_SIDS_USER_FLAG
public static final long EXTRA_SIDS_USER_FLAG
- See Also:
- Constant Field Values
-
RESOURCE_GROUP_IDS_USER_FLAG
public static final long RESOURCE_GROUP_IDS_USER_FLAG
- See Also:
- Constant Field Values
-
logger
protected final Log logger
-
-
Constructor Detail
-
KerbValidationInfo
public KerbValidationInfo(byte[] infoBytes)
Parses a Kerberos validation info object from a byte array.- Parameters:
infoBytes
- Kerberos validation info structure encoded as bytes- Throws:
NullPointerException
- ifinfoBytes
is nullIllegalArgumentException
- ifinfoBytes
is emptyIllegalArgumentException
- ifGroupCount
is not equal to the actually marshaled group countIllegalArgumentException
- ifSidCount
is not zero, but flag D is not set inUserFlags
IllegalArgumentException
- ifExtraSids
is notnull
, but flag D is not set inUserFlags
IllegalArgumentException
- ifSidCount
is not equal to the actually marshaled SID countIllegalArgumentException
- ifResourceGroupDomainSid
is notnull
, but flag H is not set inUserFlags
IllegalArgumentException
- ifResourceGroupCount
is not zero, but flag H is not set inUserFlags
IllegalArgumentException
- ifResourceGroupIds
is notnull
, but flag H is not set inUserFlags
IllegalArgumentException
- ifResourceGroupCount
is not equal to the actually marshaled resource group countIllegalArgumentException
- if anyRPC_UNICODE_STRING
is incorrectly NDR-encoded
-
-
Method Detail
-
getEffectiveName
public String getEffectiveName()
-
getFullName
public String getFullName()
-
getLogonScript
public String getLogonScript()
-
getProfilePath
public String getProfilePath()
-
getHomeDirectory
public String getHomeDirectory()
-
getHomeDirectoryDrive
public String getHomeDirectoryDrive()
-
getUserId
public long getUserId()
-
getPrimaryGroupId
public long getPrimaryGroupId()
-
getGroupIds
public List<GroupMembership> getGroupIds()
-
getUserFlags
public long getUserFlags()
-
getLogonServer
public String getLogonServer()
-
getLogonDomainName
public String getLogonDomainName()
-
getLogonDomainId
public Sid getLogonDomainId()
-
getUserAccountControl
public long getUserAccountControl()
-
getExtraSids
public List<KerbSidAndAttributes> getExtraSids()
-
getResourceGroupDomainSid
public Sid getResourceGroupDomainSid()
-
getResourceGroupIds
public List<GroupMembership> getResourceGroupIds()
-
-