public class MockWindowsIdentity extends Object implements IWindowsIdentity
Constructor and Description |
---|
MockWindowsIdentity(String newFqn,
List<String> newGroups)
Instantiates a new mock windows identity.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
String |
getFqn() |
IWindowsAccount[] |
getGroups() |
byte[] |
getSid() |
String |
getSidString() |
IWindowsImpersonationContext |
impersonate() |
boolean |
isGuest() |
public String getFqn()
getFqn
in interface IWindowsIdentity
public IWindowsAccount[] getGroups()
getGroups
in interface IWindowsIdentity
public byte[] getSid()
getSid
in interface IWindowsIdentity
public String getSidString()
getSidString
in interface IWindowsIdentity
public void dispose()
dispose
in interface IWindowsIdentity
public boolean isGuest()
isGuest
in interface IWindowsIdentity
public IWindowsImpersonationContext impersonate()
impersonate
in interface IWindowsIdentity
Copyright © 2010–2015 com.github.dblock. All rights reserved.