public class SWbemSecurityImpl extends Object implements SWbemSecurity
| Modifier and Type | Field and Description |
|---|---|
protected int |
authenticationLevel |
protected int |
impersonationLevel |
protected SWbemPrivilegeSet |
privileges |
| Constructor and Description |
|---|
SWbemSecurityImpl() |
SWbemSecurityImpl(ActiveXMethods ax) |
| Modifier and Type | Method and Description |
|---|---|
SWbemSecurityImpl |
configure(Consumer<SWbemSecurityImpl> conf) |
static SWbemSecurityImpl |
fromOwner(com.jacob.activeX.ActiveXComponent axOwner) |
static SWbemSecurityImpl |
fromOwner(ActiveXMethods axOwner) |
static SWbemSecurityImpl |
fromOwner(GetActiveXComponent axOwner) |
int |
getAuthenticationLevel()
Numeric value that defines the COM Authentication level that is assigned to this object.
|
int |
getImpersonationLevel()
Numeric value that defines the COM Impersonation level
that is assigned to this object.
|
SWbemPrivilegeSet |
getPrivileges()
object that defines privileges for this object.
|
protected void |
init(ActiveXMethods ax) |
void |
setAuthenticationLevel(int authenticationLevel) |
void |
setImpersonationLevel(int impersonationLevel) |
void |
setPrivileges(SWbemPrivilegeSet privileges) |
protected int authenticationLevel
protected int impersonationLevel
protected SWbemPrivilegeSet privileges
public SWbemSecurityImpl()
public SWbemSecurityImpl(ActiveXMethods ax)
protected void init(ActiveXMethods ax)
public static SWbemSecurityImpl fromOwner(com.jacob.activeX.ActiveXComponent axOwner)
public static SWbemSecurityImpl fromOwner(GetActiveXComponent axOwner)
public static SWbemSecurityImpl fromOwner(ActiveXMethods axOwner)
public SWbemSecurityImpl configure(Consumer<SWbemSecurityImpl> conf)
public int getAuthenticationLevel()
SWbemSecurity
strComputer = "RemoteComputer"
Set objWMIServices = GetObject("WINMGMTS:" _
& "{authenticationLevel=pktPrivacy}!\\" _
& strComputer & "\ROOT\CIMV2")
getAuthenticationLevel in interface SWbemSecuritypublic void setAuthenticationLevel(int authenticationLevel)
public int getImpersonationLevel()
SWbemSecuritygetImpersonationLevel in interface SWbemSecuritypublic void setImpersonationLevel(int impersonationLevel)
public SWbemPrivilegeSet getPrivileges()
SWbemSecuritygetPrivileges in interface SWbemSecuritypublic void setPrivileges(SWbemPrivilegeSet privileges)
Copyright © 2020. All rights reserved.