cn.chenlichao.wmi4j.consts
枚举 WbemImpersonationLevelEnum

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

public enum WbemImpersonationLevelEnum
extends Enum<WbemImpersonationLevelEnum>

The WbemImpersonationLevelEnum constants define the security impersonation levels. These constants are used with SWbemSecurity. Created by chenlichao on 14-7-28.


枚举常量摘要
Anonymous
          1(0x1): Hides the credentials of the caller.
Delegate
          4(0x4): Allows objects to permit other objects to use the credentials of the caller.
Identify
          2(0x2): Allows objects to query the credentials of the caller.
Impersonate
          3(0x3): Allows objects to use the credentials of the caller.
 
方法摘要
 int getValue()
           
static WbemImpersonationLevelEnum parse(int value)
           
static WbemImpersonationLevelEnum valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static WbemImpersonationLevelEnum[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

Anonymous

public static final WbemImpersonationLevelEnum Anonymous
1(0x1): Hides the credentials of the caller. Calls to WMI may fail with this impersonation level.


Identify

public static final WbemImpersonationLevelEnum Identify
2(0x2): Allows objects to query the credentials of the caller. Calls to WMI may fail with this impersonation level.


Impersonate

public static final WbemImpersonationLevelEnum Impersonate
3(0x3): Allows objects to use the credentials of the caller. This is the recommended impersonation level for Scripting API for WMI calls.


Delegate

public static final WbemImpersonationLevelEnum Delegate
4(0x4): Allows objects to permit other objects to use the credentials of the caller. This impersonation will work with Scripting API for WMI calls but may constitute an unnecessary security risk.

方法详细信息

values

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


valueOf

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

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

getValue

public int getValue()

parse

public static WbemImpersonationLevelEnum parse(int value)


Copyright © 2014. All rights reserved.