use of org.apache.karaf.jaas.modules.BackingEngine in project karaf by apache.
the class ListGroupsCommand method execute.
@Override
public Object execute() throws Exception {
JaasRealm realm = (JaasRealm) session.get(JAAS_REALM);
AppConfigurationEntry entry = (AppConfigurationEntry) session.get(JAAS_ENTRY);
if (realm == null || entry == null) {
System.err.println("No JAAS Realm / Module has been selected.");
return null;
}
BackingEngine engine = getBackingEngine(entry);
if (engine == null) {
System.err.println("Can't get the list of users (no backing engine service registered)");
return null;
}
return doExecute(engine);
}
use of org.apache.karaf.jaas.modules.BackingEngine in project karaf by apache.
the class UpdateCommand method execute.
@Override
public Object execute() throws Exception {
JaasRealm realm = (JaasRealm) session.get(JAAS_REALM);
AppConfigurationEntry entry = (AppConfigurationEntry) session.get(JAAS_ENTRY);
if (realm == null || entry == null) {
System.err.println("No JAAS Realm/Login Module selected");
return null;
}
BackingEngine engine = getBackingEngine(entry);
if (engine == null) {
System.err.println("Can't update the JAAS realm (no backing engine service registered)");
return null;
}
return doExecute(engine);
}
use of org.apache.karaf.jaas.modules.BackingEngine in project karaf by apache.
the class ListUsersCommand method execute.
@Override
public Object execute() throws Exception {
JaasRealm realm = (JaasRealm) session.get(JAAS_REALM);
AppConfigurationEntry entry = (AppConfigurationEntry) session.get(JAAS_ENTRY);
if (realm == null || entry == null) {
System.err.println("No JAAS Realm/Login Module has been selected");
return null;
}
BackingEngine engine = getBackingEngine(entry);
if (engine == null) {
System.err.println("Can't get the list of users (no backing engine service found)");
return null;
}
return doExecute(engine);
}
Aggregations