org.apache.karaf.jaas.modules
Class AbstractKarafLoginModule

java.lang.Object
  extended by org.apache.karaf.jaas.modules.AbstractKarafLoginModule
All Implemented Interfaces:
LoginModule
Direct Known Subclasses:
JDBCLoginModule, LDAPLoginModule, OsgiConfigLoginModule, PropertiesLoginModule, PublickeyLoginModule

public abstract class AbstractKarafLoginModule
extends Object
implements LoginModule


Field Summary
protected  org.osgi.framework.BundleContext bundleContext
          the bundle context is required to use the encryption service
protected  CallbackHandler callbackHandler
           
protected  boolean debug
           
protected  boolean detailedLoginExcepion
           
protected  Map<String,?> options
           
protected  Set<Principal> principals
           
protected  String roleDiscriminator
           
protected  String rolePolicy
           
protected  Subject subject
           
protected  String user
           
 
Constructor Summary
AbstractKarafLoginModule()
           
 
Method Summary
 boolean checkPassword(String plain, String encrypted)
           
protected  void clear()
           
 boolean commit()
           
 String getEncryptedPassword(String password)
           
 void initialize(Subject sub, CallbackHandler handler, Map options)
           
 
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
abort, initialize, login, logout
 

Field Detail

principals

protected Set<Principal> principals

subject

protected Subject subject

user

protected String user

callbackHandler

protected CallbackHandler callbackHandler

debug

protected boolean debug

options

protected Map<String,?> options

rolePolicy

protected String rolePolicy

roleDiscriminator

protected String roleDiscriminator

detailedLoginExcepion

protected boolean detailedLoginExcepion

bundleContext

protected org.osgi.framework.BundleContext bundleContext
the bundle context is required to use the encryption service

Constructor Detail

AbstractKarafLoginModule

public AbstractKarafLoginModule()
Method Detail

commit

public boolean commit()
               throws LoginException
Specified by:
commit in interface LoginModule
Throws:
LoginException

clear

protected void clear()

initialize

public void initialize(Subject sub,
                       CallbackHandler handler,
                       Map options)

getEncryptedPassword

public String getEncryptedPassword(String password)

checkPassword

public boolean checkPassword(String plain,
                             String encrypted)


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.