Class UserLoginModule
java.lang.Object
bitel.billing.server.admin.bgsecure.bean.UserLoginModule
- All Implemented Interfaces:
LoginModule
- Direct Known Subclasses:
UserLoginModule.WithoutPassword
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected CallbackHandler
protected boolean
protected Subject
protected UserLoginModule.UserPrincipal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
abort()
static Subject
аутентификация. используется slave-коннекшен.boolean
commit()
static User
void
initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) boolean
login()
protected void
login
(User user, NameCallback name, PasswordCallback pswd) boolean
logout()
-
Field Details
-
subject
-
callbackHandler
-
options
-
user
-
loginOK
protected boolean loginOK
-
-
Constructor Details
-
UserLoginModule
public UserLoginModule()
-
-
Method Details
-
auth
public static Subject auth(String loginContextName, String userName, String userPswd) throws LoginException аутентификация. используется slave-коннекшен.- Throws:
LoginException
- не получилось
-
getUser
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) - Specified by:
initialize
in interfaceLoginModule
-
login
- Throws:
LoginException
-
login
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
commit
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
- Specified by:
abort
in interfaceLoginModule
- Throws:
LoginException
-
logout
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-