public class WindowsLoginModule
extends java.lang.Object
implements javax.security.auth.spi.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(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map<java.lang.String,?> sharedState,
java.util.Map<java.lang.String,?> options) |
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() |
void |
setAllowGuestLogin(boolean value)
Set whether Guest login is permitted.
|
void |
setAuth(IWindowsAuthProvider provider)
Set Windows auth provider.
|
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map<java.lang.String,?> sharedState,
java.util.Map<java.lang.String,?> options)
initialize in interface javax.security.auth.spi.LoginModulepublic boolean login()
throws javax.security.auth.login.LoginException
login in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginExceptionpublic boolean abort()
throws javax.security.auth.login.LoginException
abort in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginExceptionpublic boolean commit()
throws javax.security.auth.login.LoginException
commit in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginExceptionpublic boolean logout()
throws javax.security.auth.login.LoginException
logout in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginExceptionpublic 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.