diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2016-11-25 21:08:56 +1000 |
---|---|---|
committer | Fraser Tweedale <ftweedal@redhat.com> | 2016-12-12 11:49:54 +1000 |
commit | e2e4b70bab9c81b9007057cafd25447190d6cde4 (patch) | |
tree | c849a49b3cddecd047e226e1c47e3476738787fb /base/common/src | |
parent | 7ab1bbb708d539d4db4e494418fedb952e4880bc (diff) | |
download | pki-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.java | 9 |
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; } |