public class MockWindowsAuthProvider extends Object implements IWindowsAuthProvider
Constructor and Description |
---|
MockWindowsAuthProvider()
Instantiates a new mock windows auth provider.
|
Modifier and Type | Method and Description |
---|---|
IWindowsSecurityContext |
acceptSecurityToken(String connectionId,
byte[] token,
String securityPackage) |
void |
addGroup(String name)
Adds the group.
|
IWindowsComputer |
getCurrentComputer() |
IWindowsDomain[] |
getDomains() |
IWindowsIdentity |
logonDomainUser(String username,
String domain,
String password) |
IWindowsIdentity |
logonDomainUserEx(String username,
String domain,
String password,
int logonType,
int logonProvider) |
IWindowsIdentity |
logonUser(String username,
String password)
Will login the current user with any password.
|
IWindowsAccount |
lookupAccount(String username) |
void |
resetSecurityToken(String connectionId) |
public MockWindowsAuthProvider()
public void addGroup(String name)
name
- the namepublic IWindowsSecurityContext acceptSecurityToken(String connectionId, byte[] token, String securityPackage)
acceptSecurityToken
in interface IWindowsAuthProvider
public IWindowsComputer getCurrentComputer()
getCurrentComputer
in interface IWindowsAuthProvider
public IWindowsDomain[] getDomains()
getDomains
in interface IWindowsAuthProvider
public IWindowsIdentity logonDomainUser(String username, String domain, String password)
logonDomainUser
in interface IWindowsAuthProvider
public IWindowsIdentity logonDomainUserEx(String username, String domain, String password, int logonType, int logonProvider)
logonDomainUserEx
in interface IWindowsAuthProvider
public IWindowsIdentity logonUser(String username, String password)
logonUser
in interface IWindowsAuthProvider
username
- the usernamepassword
- the passwordpublic IWindowsAccount lookupAccount(String username)
lookupAccount
in interface IWindowsAuthProvider
public void resetSecurityToken(String connectionId)
resetSecurityToken
in interface IWindowsAuthProvider
Copyright © 2010–2015 com.github.dblock. All rights reserved.