summaryrefslogtreecommitdiffstats
path: root/base/common/src
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2016-11-25 21:08:56 +1000
committerFraser Tweedale <ftweedal@redhat.com>2016-12-12 11:49:54 +1000
commite2e4b70bab9c81b9007057cafd25447190d6cde4 (patch)
treec849a49b3cddecd047e226e1c47e3476738787fb /base/common/src
parent7ab1bbb708d539d4db4e494418fedb952e4880bc (diff)
downloadpki-e2e4b70bab9c81b9007057cafd25447190d6cde4.tar.gz
pki-e2e4b70bab9c81b9007057cafd25447190d6cde4.tar.xz
pki-e2e4b70bab9c81b9007057cafd25447190d6cde4.zip
Add getAuthzManagerNameByRealm to IAuthzSubsystem
The getAuthzManagerByRealm public method is defined in AuthzSubsystem but to support external principals we want to make this part of the IAuthzSubsystem interface, so other classes (e.g. ACLInterceptor) can use it. Part of: https://fedorahosted.org/pki/ticket/1359
Diffstat (limited to 'base/common/src')
-rw-r--r--base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java b/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java
index c7d8df56b..6fcf8e7b0 100644
--- a/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java
+++ b/base/common/src/com/netscape/certsrv/authorization/IAuthzSubsystem.java
@@ -21,6 +21,7 @@ import java.util.Enumeration;
import java.util.Hashtable;
import com.netscape.certsrv.authentication.IAuthToken;
+import com.netscape.certsrv.authorization.EAuthzUnknownRealm;
import com.netscape.certsrv.base.EBaseException;
import com.netscape.certsrv.base.ISubsystem;
@@ -181,4 +182,12 @@ public interface IAuthzSubsystem extends ISubsystem {
* @return an authorization manager interface
*/
public IAuthzManager get(String name);
+
+ /**
+ * Given a realm name, return the name of an authz manager for that realm.
+ *
+ * @throws EAuthzUnknownRealm if no authz manager is found.
+ */
+ public String getAuthzManagerNameByRealm(String realm)
+ throws EAuthzUnknownRealm;
}