org.apache.karaf.jaas.command
Class JaasCommandSupport

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.apache.karaf.shell.console.OsgiCommandSupport
          extended by org.apache.karaf.jaas.command.JaasCommandSupport
All Implemented Interfaces:
Action, BundleContextAware
Direct Known Subclasses:
CancelCommand, ListPendingCommand, ListRealmsCommand, ListUsersCommand, ManageRealmCommand, RoleAddCommand, RoleDeleteCommand, UpdateCommand, UserAddCommand, UserDeleteCommand

public abstract class JaasCommandSupport
extends OsgiCommandSupport

Author:
iocanel

Field Summary
protected  BackingEngineService backingEngineService
           
static java.lang.String JAAS_CMDS
           
static java.lang.String JAAS_ENTRY
           
static java.lang.String JAAS_REALM
           
 
Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
bundleContext, usedReferences
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
JaasCommandSupport()
           
 
Method Summary
protected  java.lang.Object doExecute()
          Add the command to the command queue.
protected abstract  java.lang.Object doExecute(BackingEngine engine)
           
 javax.security.auth.login.AppConfigurationEntry findEntryByRealmAndName(JaasRealm realm, java.lang.String moduleName)
          Returns the Jaas Module entry of the specified realm, named as moduleName.
 JaasRealm findRealmByName(java.lang.String realmName)
          Returns the Jaas Realm named as realmName.
 BackingEngineService getBackingEngineService()
           
 java.util.List<JaasRealm> getRealms()
           
 void setBackingEngineService(BackingEngineService backingEngineService)
           
 void setRealms(java.util.List<JaasRealm> realms)
           
 
Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
execute, getAllServices, getBundleContext, getService, setBundleContext, ungetServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAAS_REALM

public static final java.lang.String JAAS_REALM
See Also:
Constant Field Values

JAAS_ENTRY

public static final java.lang.String JAAS_ENTRY
See Also:
Constant Field Values

JAAS_CMDS

public static final java.lang.String JAAS_CMDS
See Also:
Constant Field Values

backingEngineService

protected BackingEngineService backingEngineService
Constructor Detail

JaasCommandSupport

public JaasCommandSupport()
Method Detail

doExecute

protected abstract java.lang.Object doExecute(BackingEngine engine)
                                       throws Exception
Throws:
Exception

doExecute

protected java.lang.Object doExecute()
                              throws Exception
Add the command to the command queue.

Specified by:
doExecute in class AbstractAction
Returns:
Throws:
Exception

findRealmByName

public JaasRealm findRealmByName(java.lang.String realmName)
Returns the Jaas Realm named as realmName.

Parameters:
realmName -
Returns:

findEntryByRealmAndName

public javax.security.auth.login.AppConfigurationEntry findEntryByRealmAndName(JaasRealm realm,
                                                                               java.lang.String moduleName)
Returns the Jaas Module entry of the specified realm, named as moduleName.

Parameters:
moduleName -
Returns:

getRealms

public java.util.List<JaasRealm> getRealms()

setRealms

public void setRealms(java.util.List<JaasRealm> realms)

getBackingEngineService

public BackingEngineService getBackingEngineService()

setBackingEngineService

public void setBackingEngineService(BackingEngineService backingEngineService)


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