|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.chenlichao.wmi4j.SWbemSecurity
public class SWbemSecurity
The SWbemSecurity object gets or sets security settings, such as privileges, COM impersonations, and authentication levels
assigned to an object. The SWbemLocator, SWbemServices, SWbemObject,
SWbemObjectSet, SWbemObjectPath, SWbemLastError,
and SWbemEventSource objects have a security property, which is the SWbemSecurity object.
When you retrieve an instance or view the WMI security log, you might need to set the properties of the SWbemSecurity object.
Created by chenlichao on 14-7-23.
| 方法摘要 | |
|---|---|
WbemAuthenticationLevelEnum |
getAuthenticationLevel()
Get the COM Authentication level that is assigned to this object. |
WbemImpersonationLevelEnum |
getImpersonationLevel()
Get the COM impersonation level that is assigned to this object. |
SWbemPrivilegeSet |
getPrivileges()
The privileges property is an SWbemPrivilegeSet object. |
void |
setAuthenticationLevel(WbemAuthenticationLevelEnum level)
Set the COM Authentication level that is assigned to this object. |
void |
setImpersonationLevel(WbemImpersonationLevelEnum level)
Set the COM impersonation level that is assigned to this object. |
| 从类 java.lang.Object 继承的方法 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public WbemAuthenticationLevelEnum getAuthenticationLevel()
throws WMIException
WMIException
public void setAuthenticationLevel(WbemAuthenticationLevelEnum level)
throws WMIException
level - the COM Authentication level that is assigned to this object.
WMIException
public WbemImpersonationLevelEnum getImpersonationLevel()
throws WMIException
WMIException
public void setImpersonationLevel(WbemImpersonationLevelEnum level)
throws WMIException
level - the COM impersonation level that is assigned to this object.
WMIException
public SWbemPrivilegeSet getPrivileges()
throws WMIException
This setting allows you to grant or revoke privileges as part of a WMI moniker string.
For the complete list of applicable values, see WbemPrivilegeEnum
You can change the privileges defined for the SWbemServices,
SWbemObject, SWbemObjectSet, SWbemObjectPath,
and SWbemLocator objects by adding SWbemPrivilege objects to the privileges property.
There are fundamental differences in how different versions of Windows handle changes to privileges. If you are developing an application that is only used on Windows platforms, you can set or revoke privileges at any time.
WMIException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||