Package org.apache.karaf.jaas.modules
Class AbstractKarafLoginModule
- java.lang.Object
-
- org.apache.karaf.jaas.modules.AbstractKarafLoginModule
-
- All Implemented Interfaces:
LoginModule
- Direct Known Subclasses:
DigestPasswordLoginModule,GSSAPILdapLoginModule,JDBCLoginModule,LDAPLoginModule,LDAPPubkeyLoginModule,OsgiConfigLoginModule,PropertiesLoginModule,PublickeyLoginModule,SyncopeLoginModule
public abstract class AbstractKarafLoginModule extends Object implements LoginModule
Abstract JAAS login module extended by all Karaf Login Modules.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContextbundleContextthe bundle context is required to use the encryption serviceprotected CallbackHandlercallbackHandlerprotected booleancommitSucceededprotected booleandebugprotected booleandetailedLoginExcepionprotected Map<String,?>optionsprotected Set<Principal>principalsprotected StringroleDiscriminatorprotected StringrolePolicyprotected Subjectsubjectprotected booleansucceededthe authentication statusprotected Stringuser
-
Constructor Summary
Constructors Constructor Description AbstractKarafLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()booleancheckPassword(String password, String storedPassword)protected voidclear()booleancommit()voidinitialize(Subject sub, CallbackHandler handler, Map<String,?> options)booleanlogout()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.spi.LoginModule
initialize, login
-
-
-
-
Field Detail
-
subject
protected Subject subject
-
user
protected String user
-
callbackHandler
protected CallbackHandler callbackHandler
-
debug
protected boolean debug
-
rolePolicy
protected String rolePolicy
-
roleDiscriminator
protected String roleDiscriminator
-
detailedLoginExcepion
protected boolean detailedLoginExcepion
-
succeeded
protected boolean succeeded
the authentication status
-
commitSucceeded
protected boolean commitSucceeded
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext
the bundle context is required to use the encryption service
-
-
Method Detail
-
commit
public boolean commit() throws LoginException- Specified by:
commitin interfaceLoginModule- Throws:
LoginException
-
abort
public boolean abort() throws LoginException- Specified by:
abortin interfaceLoginModule- Throws:
LoginException
-
logout
public boolean logout() throws LoginException- Specified by:
logoutin interfaceLoginModule- Throws:
LoginException
-
clear
protected void clear()
-
initialize
public void initialize(Subject sub, CallbackHandler handler, Map<String,?> options)
-
-