Class PropertiesFileLoginModule
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.jaas.spi.PropertiesFileLoginModule
-
- All Implemented Interfaces:
LoginModule
public class PropertiesFileLoginModule extends Object implements LoginModule
This LoginModule imports a user's Principal and credentials information (BasicUserPrincipal, BasicRolePrincipal, UserPasswordCredentials) and associates them with the current Subject. This LoginModule recognizes the debug option. If set to true in the login Configuration, debug messages will be output at the INFO level.
-
-
Constructor Summary
Constructors Constructor Description PropertiesFileLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abort()
boolean
commit()
void
initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
boolean
login()
boolean
logout()
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initialize
in interfaceLoginModule
-
login
public boolean login() throws LoginException
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
commit
public boolean commit() throws LoginException
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
public boolean abort() throws LoginException
- Specified by:
abort
in interfaceLoginModule
- Throws:
LoginException
-
logout
public boolean logout() throws LoginException
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-
-