cn.chenlichao.wmi4j.consts
枚举 WbemPrivilegeEnum

java.lang.Object
  继承者 java.lang.Enum<WbemPrivilegeEnum>
      继承者 cn.chenlichao.wmi4j.consts.WbemPrivilegeEnum
所有已实现的接口:
Serializable, Comparable<WbemPrivilegeEnum>

public enum WbemPrivilegeEnum
extends Enum<WbemPrivilegeEnum>

The WbemPrivilegeEnum constants define privileges. These constants are used with SWbemSecurity to grant the privileges required for some operations. Created by chenlichao on 14-7-28.


枚举常量摘要
Audit
          20(0x14), SeAuditPrivilege: Required to generate audit-log entries.
Backup
          16(0x10), SeBackupPrivilege: Required to perform backup operations.
ChangeNotify
          22(0x16), SeChangeNotifyPrivilege: Required to receive notifications of changes to files or directories.
CreatePagefile
          14(0xE), SeCreatePagefilePrivilege: Required to create a paging file.
CreatePermanent
          15(0xF), SeCreatePermanentPrivilege: Required to create a permanent object.
CreateToken
          1(0x1), SeCreateTokenPrivilege: Required to create a primary token.
Debug
          19(0x13), SeDebugPrivilege: Required to debug a process.
EnableDelegation
          26(0x1A), SeEnableDelegationPrivilege: Required to enable computer and user accounts to be trusted for delegation.
IncreaseBasePriority
          13(0xD), SeIncreaseBasePriorityPrivilege: Required to increase the base priority of a process.
IncreaseQuota
          4(0x4), SeIncreaseQuotaPrivilege: Required to increase the quota assigned to a process.
LoadDriver
          9(0x9), SeLoadDriverPrivilege: Required to load or unload a device driver.
LockMemory
          3(0x3), SeLockMemoryPrivilege: Required to lock physical pages in memory.
MachineAccount
          5(0x5), SeMachineAccountPrivilege: Required to create a machine account.
ManageVolume
          27(0x1B), SeManageVolumePrivilege: Required to perform volume maintenance tasks.
PrimaryToken
          2(0x2), SePrimaryTokenPrivilege: Required to assign the primary token of a process.
ProfileSingleProcess
          12(0xC), SeProfileSingleProcessPrivilege: Required to gather profiling information for a single process.
RemoteShutdown
          23(0x17), SeRemoteShutdownPrivilege: Required to shut down a system using a network request.
Restore
          17(0x11), SeRestorePrivilege: Required to perform restore operations.
Security
          7(0x7), SeSecurityPrivilege: Required to perform a number of security-related functions, such as controlling and viewing audit messages.
Shutdown
          18(0x12), SeShutdownPrivilege: Required to shut down a local system.
SyncAgent
          25(0x19), SeSyncAgentPrivilege: Required to synchronize directory service data.
SystemEnvironment
          21(0x15), SeSystemEnvironmentPrivilege: Required to modify the nonvolatile RAM of systems that use this type of memory to store configuration information.
SystemProfile
          10(0xA), SeSystemProfilePrivilege: Required to gather profiling information for the entire system.
Systemtime
          11(0xB), SeSystemtimePrivilege: Required to modify the system time.
TakeOwnership
          8(0x8), SeTakeOwnershipPrivilege: Required to take ownership of an object without being granted discretionary access.
Tcb
          6(0x6), SeTcbPrivilege: Identifies its holder as part of the trusted computer base.
Undock
          24(0x18), SeUndockPrivilege: Required to remove a computer from a docking station.
 
方法摘要
 String getStrValue()
           
 int getValue()
           
static WbemPrivilegeEnum parse(int value)
           
static WbemPrivilegeEnum parse(String strValue)
           
static WbemPrivilegeEnum valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static WbemPrivilegeEnum[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

CreateToken

public static final WbemPrivilegeEnum CreateToken
1(0x1), SeCreateTokenPrivilege: Required to create a primary token.


PrimaryToken

public static final WbemPrivilegeEnum PrimaryToken
2(0x2), SePrimaryTokenPrivilege: Required to assign the primary token of a process.


LockMemory

public static final WbemPrivilegeEnum LockMemory
3(0x3), SeLockMemoryPrivilege: Required to lock physical pages in memory.


IncreaseQuota

public static final WbemPrivilegeEnum IncreaseQuota
4(0x4), SeIncreaseQuotaPrivilege: Required to increase the quota assigned to a process.


MachineAccount

public static final WbemPrivilegeEnum MachineAccount
5(0x5), SeMachineAccountPrivilege: Required to create a machine account.


Tcb

public static final WbemPrivilegeEnum Tcb
6(0x6), SeTcbPrivilege: Identifies its holder as part of the trusted computer base. Some trusted, protected subsystems are granted this privilege.


Security

public static final WbemPrivilegeEnum Security
7(0x7), SeSecurityPrivilege: Required to perform a number of security-related functions, such as controlling and viewing audit messages. This privilege identifies its holder as a security operator.


TakeOwnership

public static final WbemPrivilegeEnum TakeOwnership
8(0x8), SeTakeOwnershipPrivilege: Required to take ownership of an object without being granted discretionary access. This privilege allows the owner value to be set only to those values that the holder may legitimately assign as the owner of an object.


LoadDriver

public static final WbemPrivilegeEnum LoadDriver
9(0x9), SeLoadDriverPrivilege: Required to load or unload a device driver.


SystemProfile

public static final WbemPrivilegeEnum SystemProfile
10(0xA), SeSystemProfilePrivilege: Required to gather profiling information for the entire system.


Systemtime

public static final WbemPrivilegeEnum Systemtime
11(0xB), SeSystemtimePrivilege: Required to modify the system time.


ProfileSingleProcess

public static final WbemPrivilegeEnum ProfileSingleProcess
12(0xC), SeProfileSingleProcessPrivilege: Required to gather profiling information for a single process.


IncreaseBasePriority

public static final WbemPrivilegeEnum IncreaseBasePriority
13(0xD), SeIncreaseBasePriorityPrivilege: Required to increase the base priority of a process.


CreatePagefile

public static final WbemPrivilegeEnum CreatePagefile
14(0xE), SeCreatePagefilePrivilege: Required to create a paging file.


CreatePermanent

public static final WbemPrivilegeEnum CreatePermanent
15(0xF), SeCreatePermanentPrivilege: Required to create a permanent object.


Backup

public static final WbemPrivilegeEnum Backup
16(0x10), SeBackupPrivilege: Required to perform backup operations.


Restore

public static final WbemPrivilegeEnum Restore
17(0x11), SeRestorePrivilege: Required to perform restore operations. This privilege enables you to set any valid user or group security identifier (SID) as the owner of an object.


Shutdown

public static final WbemPrivilegeEnum Shutdown
18(0x12), SeShutdownPrivilege: Required to shut down a local system.


Debug

public static final WbemPrivilegeEnum Debug
19(0x13), SeDebugPrivilege: Required to debug a process.


Audit

public static final WbemPrivilegeEnum Audit
20(0x14), SeAuditPrivilege: Required to generate audit-log entries.


SystemEnvironment

public static final WbemPrivilegeEnum SystemEnvironment
21(0x15), SeSystemEnvironmentPrivilege: Required to modify the nonvolatile RAM of systems that use this type of memory to store configuration information.


ChangeNotify

public static final WbemPrivilegeEnum ChangeNotify
22(0x16), SeChangeNotifyPrivilege: Required to receive notifications of changes to files or directories. This privilege also causes the system to skip all traversal access checks. It is enabled by default for all users.


RemoteShutdown

public static final WbemPrivilegeEnum RemoteShutdown
23(0x17), SeRemoteShutdownPrivilege: Required to shut down a system using a network request.


Undock

public static final WbemPrivilegeEnum Undock
24(0x18), SeUndockPrivilege: Required to remove a computer from a docking station.


SyncAgent

public static final WbemPrivilegeEnum SyncAgent
25(0x19), SeSyncAgentPrivilege: Required to synchronize directory service data.


EnableDelegation

public static final WbemPrivilegeEnum EnableDelegation
26(0x1A), SeEnableDelegationPrivilege: Required to enable computer and user accounts to be trusted for delegation.


ManageVolume

public static final WbemPrivilegeEnum ManageVolume
27(0x1B), SeManageVolumePrivilege: Required to perform volume maintenance tasks.

方法详细信息

values

public static WbemPrivilegeEnum[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (WbemPrivilegeEnum c : WbemPrivilegeEnum.values())
    System.out.println(c);


valueOf

public static WbemPrivilegeEnum valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

getValue

public int getValue()

getStrValue

public String getStrValue()

parse

public static WbemPrivilegeEnum parse(int value)

parse

public static WbemPrivilegeEnum parse(String strValue)


Copyright © 2014. All rights reserved.