public class UserLoginModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule
Modifier and Type | Class and Description |
---|---|
class |
UserLoginModule.ConnectionCallback |
class |
UserLoginModule.UserPrincipal |
static class |
UserLoginModule.WithoutPassword |
Modifier and Type | Field and Description |
---|---|
protected javax.security.auth.callback.CallbackHandler |
callbackHandler |
protected boolean |
loginOK |
protected java.util.Map<java.lang.String,?> |
options |
protected java.util.Map<java.lang.String,?> |
sharedState |
protected javax.security.auth.Subject |
subject |
protected UserLoginModule.UserPrincipal |
user |
Constructor and Description |
---|
UserLoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort() |
static javax.security.auth.Subject |
auth(java.lang.String loginContextName,
java.lang.String userName,
java.lang.String userPswd)
аутентификация. используется slave-коннекшен.
|
boolean |
commit() |
static User |
getUser(javax.security.auth.Subject subject) |
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 |
login() |
protected void |
login(User user,
javax.security.auth.callback.NameCallback name,
javax.security.auth.callback.PasswordCallback pswd) |
boolean |
logout() |
protected javax.security.auth.Subject subject
protected javax.security.auth.callback.CallbackHandler callbackHandler
protected java.util.Map<java.lang.String,?> sharedState
protected java.util.Map<java.lang.String,?> options
protected UserLoginModule.UserPrincipal user
protected boolean loginOK
public static final javax.security.auth.Subject auth(java.lang.String loginContextName, java.lang.String userName, java.lang.String userPswd) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
- не получилосьpublic static final User getUser(javax.security.auth.Subject subject)
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.LoginModule
protected void login(User user, javax.security.auth.callback.NameCallback name, javax.security.auth.callback.PasswordCallback pswd) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public boolean abort() throws javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public boolean logout() throws javax.security.auth.login.LoginException
logout
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException