org.apache.karaf.jaas.modules.properties
Class PropertiesLoginModule

java.lang.Object
  extended by org.apache.karaf.jaas.modules.AbstractKarafLoginModule
      extended by org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class PropertiesLoginModule
extends AbstractKarafLoginModule

JAAS Login module for user / password, based on two properties files.

Author:
gnodet, jbonofre

Field Summary
 
Fields inherited from class org.apache.karaf.jaas.modules.AbstractKarafLoginModule
bundleContext, callbackHandler, debug, options, principals, roleDiscriminator, rolePolicy, subject, user
 
Constructor Summary
PropertiesLoginModule()
           
 
Method Summary
 boolean abort()
           
 void initialize(javax.security.auth.Subject sub, javax.security.auth.callback.CallbackHandler handler, java.util.Map sharedState, java.util.Map options)
           
 boolean login()
           
 boolean logout()
           
 
Methods inherited from class org.apache.karaf.jaas.modules.AbstractKarafLoginModule
checkPassword, clear, commit, getEncryptedPassword, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesLoginModule

public PropertiesLoginModule()
Method Detail

initialize

public void initialize(javax.security.auth.Subject sub,
                       javax.security.auth.callback.CallbackHandler handler,
                       java.util.Map sharedState,
                       java.util.Map options)

login

public boolean login()
              throws javax.security.auth.login.LoginException
Throws:
javax.security.auth.login.LoginException

abort

public boolean abort()
              throws javax.security.auth.login.LoginException
Throws:
javax.security.auth.login.LoginException

logout

public boolean logout()
               throws javax.security.auth.login.LoginException
Throws:
javax.security.auth.login.LoginException


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.