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_INFOstructure 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 longEXTRA_SIDS_USER_FLAGprotected Logloggerstatic longRESOURCE_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 StringgetEffectiveName()List<KerbSidAndAttributes>getExtraSids()StringgetFullName()List<GroupMembership>getGroupIds()StringgetHomeDirectory()StringgetHomeDirectoryDrive()SidgetLogonDomainId()StringgetLogonDomainName()StringgetLogonScript()StringgetLogonServer()longgetPrimaryGroupId()StringgetProfilePath()SidgetResourceGroupDomainSid()List<GroupMembership>getResourceGroupIds()longgetUserAccountControl()longgetUserFlags()longgetUserId()
-
-
-
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- ifinfoBytesis nullIllegalArgumentException- ifinfoBytesis emptyIllegalArgumentException- ifGroupCountis not equal to the actually marshaled group countIllegalArgumentException- ifSidCountis not zero, but flag D is not set inUserFlagsIllegalArgumentException- ifExtraSidsis notnull, but flag D is not set inUserFlagsIllegalArgumentException- ifSidCountis not equal to the actually marshaled SID countIllegalArgumentException- ifResourceGroupDomainSidis notnull, but flag H is not set inUserFlagsIllegalArgumentException- ifResourceGroupCountis not zero, but flag H is not set inUserFlagsIllegalArgumentException- ifResourceGroupIdsis notnull, but flag H is not set inUserFlagsIllegalArgumentException- ifResourceGroupCountis not equal to the actually marshaled resource group countIllegalArgumentException- if anyRPC_UNICODE_STRINGis 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()
-
-