com.jniwrapper.win32.security
Class Sid
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.Structure
com.jniwrapper.win32.security.Sid
- All Implemented Interfaces:
- com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter
public class Sid
- extends com.jniwrapper.Structure
This class is the wrapper for the SID structure.
- See Also:
-
Security Identifier (SID) structure
Fields inherited from class com.jniwrapper.Structure |
i |
Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
Methods inherited from class com.jniwrapper.Structure |
a, a, acceptIOPerformer, addMembers, computeLength, 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 |
SECURITY_DIALUP_RID
public static final long SECURITY_DIALUP_RID
- See Also:
- Constant Field Values
SECURITY_NETWORK_RID
public static final long SECURITY_NETWORK_RID
- See Also:
- Constant Field Values
SECURITY_BATCH_RID
public static final long SECURITY_BATCH_RID
- See Also:
- Constant Field Values
SECURITY_INTERACTIVE_RID
public static final long SECURITY_INTERACTIVE_RID
- See Also:
- Constant Field Values
SECURITY_LOGON_IDS_RID
public static final long SECURITY_LOGON_IDS_RID
- See Also:
- Constant Field Values
SECURITY_SERVICE_RID
public static final long SECURITY_SERVICE_RID
- See Also:
- Constant Field Values
SECURITY_ANONYMOUS_LOGON_RID
public static final long SECURITY_ANONYMOUS_LOGON_RID
- See Also:
- Constant Field Values
SECURITY_PROXY_RID
public static final long SECURITY_PROXY_RID
- See Also:
- Constant Field Values
SECURITY_ENTERPRISE_CONTROLLERS_RID
public static final long SECURITY_ENTERPRISE_CONTROLLERS_RID
- See Also:
- Constant Field Values
SECURITY_SERVER_LOGON_RID
public static final long SECURITY_SERVER_LOGON_RID
- See Also:
- Constant Field Values
SECURITY_PRINCIPAL_SELF_RID
public static final long SECURITY_PRINCIPAL_SELF_RID
- See Also:
- Constant Field Values
SECURITY_AUTHENTICATED_USER_RID
public static final long SECURITY_AUTHENTICATED_USER_RID
- See Also:
- Constant Field Values
SECURITY_RESTRICTED_CODE_RID
public static final long SECURITY_RESTRICTED_CODE_RID
- See Also:
- Constant Field Values
SECURITY_TERMINAL_SERVER_RID
public static final long SECURITY_TERMINAL_SERVER_RID
- See Also:
- Constant Field Values
SECURITY_REMOTE_LOGON_RID
public static final long SECURITY_REMOTE_LOGON_RID
- See Also:
- Constant Field Values
SECURITY_THIS_ORGANIZATION_RID
public static final long SECURITY_THIS_ORGANIZATION_RID
- See Also:
- Constant Field Values
SECURITY_IUSER_RID
public static final long SECURITY_IUSER_RID
- See Also:
- Constant Field Values
SECURITY_LOCAL_SYSTEM_RID
public static final long SECURITY_LOCAL_SYSTEM_RID
- See Also:
- Constant Field Values
SECURITY_LOCAL_SERVICE_RID
public static final long SECURITY_LOCAL_SERVICE_RID
- See Also:
- Constant Field Values
SECURITY_NETWORK_SERVICE_RID
public static final long SECURITY_NETWORK_SERVICE_RID
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_ADMINS
public static final long DOMAIN_ALIAS_RID_ADMINS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_USERS
public static final long DOMAIN_ALIAS_RID_USERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_GUESTS
public static final long DOMAIN_ALIAS_RID_GUESTS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_POWER_USERS
public static final long DOMAIN_ALIAS_RID_POWER_USERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_ACCOUNT_OPS
public static final long DOMAIN_ALIAS_RID_ACCOUNT_OPS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_SYSTEM_OPS
public static final long DOMAIN_ALIAS_RID_SYSTEM_OPS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_PRINT_OPS
public static final long DOMAIN_ALIAS_RID_PRINT_OPS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_BACKUP_OPS
public static final long DOMAIN_ALIAS_RID_BACKUP_OPS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_REPLICATOR
public static final long DOMAIN_ALIAS_RID_REPLICATOR
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_RAS_SERVERS
public static final long DOMAIN_ALIAS_RID_RAS_SERVERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_PREW2KCOMPACCESS
public static final long DOMAIN_ALIAS_RID_PREW2KCOMPACCESS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS
public static final long DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS
public static final long DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS
public static final long DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_MONITORING_USERS
public static final long DOMAIN_ALIAS_RID_MONITORING_USERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_LOGGING_USERS
public static final long DOMAIN_ALIAS_RID_LOGGING_USERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS
public static final long DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS
public static final long DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_DCOM_USERS
public static final long DOMAIN_ALIAS_RID_DCOM_USERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_IUSERS
public static final long DOMAIN_ALIAS_RID_IUSERS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_CRYPTO_OPERATORS
public static final long DOMAIN_ALIAS_RID_CRYPTO_OPERATORS
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP
public static final long DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP
public static final long DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP
- See Also:
- Constant Field Values
DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP
public static final long DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP
- See Also:
- Constant Field Values
SECURITY_NULL_RID
public static final long SECURITY_NULL_RID
- See Also:
- Constant Field Values
SECURITY_WORLD_RID
public static final long SECURITY_WORLD_RID
- See Also:
- Constant Field Values
SECURITY_LOCAL_RID
public static final long SECURITY_LOCAL_RID
- See Also:
- Constant Field Values
SECURITY_BUILTIN_DOMAIN_RID
public static final long SECURITY_BUILTIN_DOMAIN_RID
- See Also:
- Constant Field Values
SECURITY_WRITE_RESTRICTED_CODE_RID
public static final long SECURITY_WRITE_RESTRICTED_CODE_RID
- See Also:
- Constant Field Values
SECURITY_CREATOR_OWNER_RID
public static final long SECURITY_CREATOR_OWNER_RID
- See Also:
- Constant Field Values
SECURITY_CREATOR_GROUP_RID
public static final long SECURITY_CREATOR_GROUP_RID
- See Also:
- Constant Field Values
SECURITY_CREATOR_OWNER_SERVER_RID
public static final long SECURITY_CREATOR_OWNER_SERVER_RID
- See Also:
- Constant Field Values
SECURITY_CREATOR_GROUP_SERVER_RID
public static final long SECURITY_CREATOR_GROUP_SERVER_RID
- See Also:
- Constant Field Values
SECURITY_CREATOR_OWNER_RIGHTS_RID
public static final long SECURITY_CREATOR_OWNER_RIGHTS_RID
- See Also:
- Constant Field Values
Sid
public Sid()
Sid
public Sid(SidIdentifierAuthority authority,
long[] subAuthRids)
Null
public static Sid Null()
World
public static Sid World()
Local
public static Sid Local()
CreatorOwner
public static Sid CreatorOwner()
CreatorGroup
public static Sid CreatorGroup()
CreatorOwnerServer
public static Sid CreatorOwnerServer()
CreatorGroupServer
public static Sid CreatorGroupServer()
Dialup
public static Sid Dialup()
Network
public static Sid Network()
Batch
public static Sid Batch()
Interactive
public static Sid Interactive()
Service
public static Sid Service()
AnonymousLogon
public static Sid AnonymousLogon()
Proxy
public static Sid Proxy()
ServerLogon
public static Sid ServerLogon()
Self
public static Sid Self()
AuthenticatedUser
public static Sid AuthenticatedUser()
RestrictedCode
public static Sid RestrictedCode()
TerminalServer
public static Sid TerminalServer()
System
public static Sid System()
NetworkService
public static Sid NetworkService()
Admins
public static Sid Admins()
Users
public static Sid Users()
Guests
public static Sid Guests()
PowerUsers
public static Sid PowerUsers()
AccountOps
public static Sid AccountOps()
SystemOps
public static Sid SystemOps()
PrintOps
public static Sid PrintOps()
BackupOps
public static Sid BackupOps()
Replicator
public static Sid Replicator()
RasServers
public static Sid RasServers()
PreW2KAccess
public static Sid PreW2KAccess()
getRevision
public com.jniwrapper.Int8 getRevision()
setRevision
public void setRevision(com.jniwrapper.Int8 revision)
getSubAuthorityCount
public com.jniwrapper.Int8 getSubAuthorityCount()
setSubAuthorityCount
public void setSubAuthorityCount(com.jniwrapper.Int8 subAuthorityCount)
getIdentifierAuthority
public SidIdentifierAuthority getIdentifierAuthority()
setIdentifierAuthority
public void setIdentifierAuthority(SidIdentifierAuthority identifierAuthority)
getSubAuthority
public com.jniwrapper.PrimitiveArray getSubAuthority()
setSubAuthority
public void setSubAuthority(com.jniwrapper.PrimitiveArray subAuthority)
getpSubAuthority
public com.jniwrapper.Pointer.Void getpSubAuthority()
setpSubAuthority
public void setpSubAuthority(com.jniwrapper.Pointer.Void pSubAuthority)
lookupAccountSid
public boolean lookupAccountSid(com.jniwrapper.AnsiString name,
com.jniwrapper.AnsiString domainName)
isValidSid
public boolean isValidSid(Sid sid)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class com.jniwrapper.Structure
compareSIDs
public static boolean compareSIDs(Sid sid1,
java.lang.Object sid2)
- Compares two SIDs for equality
- Parameters:
sid1
- first SID to comparesid2
- second SID to compare
- Returns:
- true for equal SIDs
convertSidToStringSid
public java.lang.String convertSidToStringSid()
- Convert SID to it's string representation (f.e. "S-1-5-15")
- Returns:
- string representation of SID
clone
public java.lang.Object clone()
- Overrides:
clone
in class com.jniwrapper.Structure