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 LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionpublic 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-2014 com.github.dblock. All Rights Reserved.