com.jniwrapper.win32.security
Class SidAndAttributes

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by com.jniwrapper.win32.security.SidAndAttributes
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class SidAndAttributes
extends com.jniwrapper.Structure

This class is the wrapper for the SID_AND_ATTRIBUTES structure. (@see SID_AND_ATTRIBUTES structure).


Field Summary
static long SE_GROUP_ENABLED
          The SID is enabled for access checks.
static long SE_GROUP_ENABLED_BY_DEFAULT
          The SID is enabled by default.
static long SE_GROUP_LOGON_ID
          The SID is a logon SID that identifies the logon session associated with an access token.
static long SE_GROUP_MANDATORY
          The SID cannot have the SE_GROUP_ENABLED attribute cleared by a call to the AdjustTokenGroups function.
static long SE_GROUP_OWNER
          The SID identifies a group account for which the user of the token is the owner of the group, or the SID can be assigned as the owner of the token or objects.
static long SE_GROUP_RESOURCE
          The SID identifies a domain-local group.
static long SE_GROUP_USE_FOR_DENY_ONLY
          The SID is a deny-only SID in a restricted token.
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
SidAndAttributes()
           
 
Method Summary
 java.lang.Object clone()
           
 com.jniwrapper.UInt32 getAttributes()
           
 com.jniwrapper.Pointer getpSid()
          Deprecated. use getSid() instead
 Sid getSid()
           
 void setAttributes(com.jniwrapper.UInt32 attributes)
           
 void setpSid(com.jniwrapper.Pointer pSid)
          Deprecated. use getSid() instead
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SE_GROUP_ENABLED

public static long SE_GROUP_ENABLED
The SID is enabled for access checks. When the system performs an access check, it checks for access-allowed and access-denied access control entries (ACEs) that apply to the SID. A SID without this attribute is ignored during an access check unless the SE_GROUP_USE_FOR_DENY_ONLY attribute is set.


SE_GROUP_ENABLED_BY_DEFAULT

public static long SE_GROUP_ENABLED_BY_DEFAULT
The SID is enabled by default.


SE_GROUP_LOGON_ID

public static long SE_GROUP_LOGON_ID
The SID is a logon SID that identifies the logon session associated with an access token.


SE_GROUP_MANDATORY

public static long SE_GROUP_MANDATORY
The SID cannot have the SE_GROUP_ENABLED attribute cleared by a call to the AdjustTokenGroups function. However, you can use the CreateRestrictedToken function to convert a mandatory SID to a deny-only SID.


SE_GROUP_OWNER

public static long SE_GROUP_OWNER
The SID identifies a group account for which the user of the token is the owner of the group, or the SID can be assigned as the owner of the token or objects.


SE_GROUP_RESOURCE

public static long SE_GROUP_RESOURCE
The SID identifies a domain-local group. Windows NT: This value is not supported.


SE_GROUP_USE_FOR_DENY_ONLY

public static long SE_GROUP_USE_FOR_DENY_ONLY
The SID is a deny-only SID in a restricted token. When the system performs an access check, it checks for access-denied ACEs that apply to the SID; it ignores access-allowed ACEs for the SID. If this attribute is set, SE_GROUP_ENABLED is not set, and the SID cannot be reenabled. Windows NT: This value is not supported.

Constructor Detail

SidAndAttributes

public SidAndAttributes()
Method Detail

getpSid

public com.jniwrapper.Pointer getpSid()
Deprecated. use getSid() instead


setpSid

public void setpSid(com.jniwrapper.Pointer pSid)
Deprecated. use getSid() instead


getSid

public Sid getSid()
Returns:
SID

getAttributes

public com.jniwrapper.UInt32 getAttributes()
Returns:
SID attributes

setAttributes

public void setAttributes(com.jniwrapper.UInt32 attributes)

clone

public java.lang.Object clone()
Overrides:
clone in class com.jniwrapper.Structure