From 58fb8bb7fb3b296897c0f553f439ab22a6df27c2 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Mon, 10 Jan 2022 22:51:25 +0100 Subject: [PATCH] [New] Added StrolchAgent.getRealm(String) --- .../li/strolch/agent/api/StrolchAgent.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchAgent.java b/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchAgent.java index d60bda318..feab6f97c 100644 --- a/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchAgent.java +++ b/li.strolch.agent/src/main/java/li/strolch/agent/api/StrolchAgent.java @@ -110,6 +110,13 @@ public class StrolchAgent { return this.container.getPrivilegeHandler(); } + /** + * @see ComponentContainer#getRealm(String) + */ + public StrolchRealm getRealm(String realm) throws StrolchException { + return getComponent(RealmHandler.class).getRealm(realm); + } + /** * @see ComponentContainer#getRealm(Certificate) */ @@ -278,10 +285,14 @@ public class StrolchAgent { * Sets up the agent by parsing the configuration file and initializes the given environment *

* - * @param environment the current environment - * @param configPathF the path to the config directory - * @param dataPathF the path to the data directory - * @param tempPathF the path to the temp directory + * @param environment + * the current environment + * @param configPathF + * the path to the config directory + * @param dataPathF + * the path to the data directory + * @param tempPathF + * the path to the temp directory */ void setup(String environment, File configPathF, File dataPathF, File tempPathF) {