Package org.apache.karaf.jaas.command
Class JaasCommandSupport
- java.lang.Object
-
- org.apache.karaf.jaas.command.JaasCommandSupport
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Direct Known Subclasses:
CancelCommand,GroupAddCommand,GroupCreateCommand,GroupDeleteCommand,GroupRoleAddCommand,GroupRoleDeleteCommand,ListGroupsCommand,ListPendingCommand,ListRealmsCommand,ListUsersCommand,ManageRealmCommand,ModuleAddCommand,RealmAddCommand,RoleAddCommand,RoleDeleteCommand,UpdateCommand,UserAddCommand,UserDeleteCommand
public abstract class JaasCommandSupport extends Object implements org.apache.karaf.shell.api.action.Action
-
-
Field Summary
Fields Modifier and Type Field Description static StringJAAS_CMDSstatic StringJAAS_ENTRYstatic StringJAAS_REALM
-
Constructor Summary
Constructors Constructor Description JaasCommandSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ObjectdoExecute(org.apache.karaf.jaas.modules.BackingEngine engine)Objectexecute()Add the command to the command queue.org.apache.karaf.jaas.modules.BackingEnginegetBackingEngine(AppConfigurationEntry entry)List<org.apache.karaf.jaas.config.JaasRealm>getRealms()List<org.apache.karaf.jaas.config.JaasRealm>getRealms(boolean hidden)voidsetRealms(List<org.apache.karaf.jaas.config.JaasRealm> realms)voidsetSession(org.apache.karaf.shell.api.console.Session session)
-
-
-
Field Detail
-
JAAS_REALM
public static final String JAAS_REALM
- See Also:
- Constant Field Values
-
JAAS_ENTRY
public static final String JAAS_ENTRY
- See Also:
- Constant Field Values
-
JAAS_CMDS
public static final String JAAS_CMDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
doExecute
protected abstract Object doExecute(org.apache.karaf.jaas.modules.BackingEngine engine) throws Exception
- Throws:
Exception
-
execute
public Object execute() throws Exception
Add the command to the command queue.- Specified by:
executein interfaceorg.apache.karaf.shell.api.action.Action- Throws:
Exception
-
getBackingEngine
public org.apache.karaf.jaas.modules.BackingEngine getBackingEngine(AppConfigurationEntry entry)
-
getRealms
public List<org.apache.karaf.jaas.config.JaasRealm> getRealms()
-
getRealms
public List<org.apache.karaf.jaas.config.JaasRealm> getRealms(boolean hidden)
-
setRealms
public void setRealms(List<org.apache.karaf.jaas.config.JaasRealm> realms)
-
setSession
public void setSession(org.apache.karaf.shell.api.console.Session session)
-
-