public class WindowsLoginModule extends Object implements LoginModule
LoginModule| Constructor and Description |
|---|
WindowsLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort()
Abort a login process.
|
boolean |
commit()
Commit principals to the subject.
|
IWindowsAuthProvider |
getAuth()
Windows auth provider.
|
void |
initialize(Subject initSubject,
CallbackHandler initCallbackHandler,
Map<String,?> initSharedState,
Map<String,?> initOptions) |
boolean |
isAllowGuestLogin()
True if Guest login permitted.
|
boolean |
isDebug()
True if Debug is enabled.
|
boolean |
login()
Use Windows SSPI to authenticate a username with a password.
|
boolean |
logout()
Logout a user.
|
void |
setAllowGuestLogin(boolean value)
Set whether Guest login is permitted.
|
void |
setAuth(IWindowsAuthProvider provider)
Set Windows auth provider.
|
public void initialize(Subject initSubject, CallbackHandler initCallbackHandler, Map<String,?> initSharedState, Map<String,?> initOptions)
initialize in interface LoginModulepublic boolean login()
throws LoginException
login in interface LoginModuleLoginException - the login exceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginException - the login exceptionpublic boolean commit()
throws LoginException
commit in interface LoginModuleLoginException - the login exceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginException - the login exceptionpublic boolean isDebug()
public IWindowsAuthProvider getAuth()
public void setAuth(IWindowsAuthProvider provider)
provider - Class implements IWindowsAuthProvider.public boolean isAllowGuestLogin()
public void setAllowGuestLogin(boolean value)
value - True or false.Copyright © 2010–2015 com.github.dblock. All rights reserved.