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()
Dispose of the Windows identity.
|
String |
getFqn()
Fully qualified name.
|
IWindowsAccount[] |
getGroups()
Group memberships.
|
byte[] |
getSid()
Sid.
|
String |
getSidString()
Sid.
|
IWindowsImpersonationContext |
impersonate()
Impersonate a logged on user.
|
boolean |
isGuest()
Returns true if the identity represents a Guest account.
|
public String getFqn()
IWindowsIdentity
getFqn
in interface IWindowsIdentity
public IWindowsAccount[] getGroups()
IWindowsIdentity
getGroups
in interface IWindowsIdentity
public byte[] getSid()
IWindowsIdentity
getSid
in interface IWindowsIdentity
public String getSidString()
IWindowsIdentity
getSidString
in interface IWindowsIdentity
public void dispose()
IWindowsIdentity
dispose
in interface IWindowsIdentity
public boolean isGuest()
IWindowsIdentity
isGuest
in interface IWindowsIdentity
public IWindowsImpersonationContext impersonate()
IWindowsIdentity
impersonate
in interface IWindowsIdentity
Copyright © 2010–2015 com.github.dblock. All rights reserved.