summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-04-28 20:16:02 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-04-28 20:19:13 +0200
commitfbea6ffbb974ee5883795e3d9e72c211a08083a0 (patch)
treea3d5106a5b0aec7af0c1f3e96ade547d3793067b
parent69a52e1179326895632ac0b4639ed8a8523091c9 (diff)
downloadpki-fbea6ffbb974ee5883795e3d9e72c211a08083a0.zip
pki-fbea6ffbb974ee5883795e3d9e72c211a08083a0.tar.gz
pki-fbea6ffbb974ee5883795e3d9e72c211a08083a0.tar.xz
Fixed build issue with apache-commons-codec 1.8.
The StringUtils.equals() invocation in AuthzSubsystem has been replaced with regular String.equals() since it's unavailable in apache-commons-codec 1.8.
-rw-r--r--base/server/cmscore/src/com/netscape/cmscore/authorization/AuthzSubsystem.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/base/server/cmscore/src/com/netscape/cmscore/authorization/AuthzSubsystem.java b/base/server/cmscore/src/com/netscape/cmscore/authorization/AuthzSubsystem.java
index 378777f..70dad20 100644
--- a/base/server/cmscore/src/com/netscape/cmscore/authorization/AuthzSubsystem.java
+++ b/base/server/cmscore/src/com/netscape/cmscore/authorization/AuthzSubsystem.java
@@ -23,8 +23,6 @@ import java.util.Hashtable;
import java.util.List;
import java.util.Vector;
-import org.apache.commons.codec.binary.StringUtils;
-
import com.netscape.certsrv.apps.CMS;
import com.netscape.certsrv.authentication.IAuthToken;
import com.netscape.certsrv.authorization.AuthzManagerProxy;
@@ -514,7 +512,7 @@ public class AuthzSubsystem implements IAuthzSubsystem {
List<String> mgrRealms = Arrays.asList(mgrRealmString.split(","));
for (String mgrRealm : mgrRealms) {
- if (StringUtils.equals(mgrRealm, realm))
+ if (mgrRealm.equals(realm))
return mgr.getName();
}
}