public abstract class AbstractKarafLoginModule extends Object implements LoginModule
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
bundleContext
the bundle context is required to use the encryption service
|
protected CallbackHandler |
callbackHandler |
protected boolean |
commitSucceeded |
protected boolean |
debug |
protected boolean |
detailedLoginExcepion |
protected Map<String,?> |
options |
protected Set<Principal> |
principals |
protected String |
roleDiscriminator |
protected String |
rolePolicy |
protected Subject |
subject |
protected boolean |
succeeded
the authentication status
|
protected String |
user |
| Constructor and Description |
|---|
AbstractKarafLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
checkPassword(String plain,
String encrypted) |
protected void |
clear() |
boolean |
commit() |
void |
initialize(Subject sub,
CallbackHandler handler,
Map<String,?> options) |
boolean |
logout() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, loginprotected Subject subject
protected String user
protected CallbackHandler callbackHandler
protected boolean debug
protected String rolePolicy
protected String roleDiscriminator
protected boolean detailedLoginExcepion
protected boolean succeeded
protected boolean commitSucceeded
protected org.osgi.framework.BundleContext bundleContext
public boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionprotected void clear()
public void initialize(Subject sub, CallbackHandler handler, Map<String,?> options)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.