Refactor deploy properties and move legacy CMS exception.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / http / client / SpnegoAuthScheme.java
index 4abdd145830a2b8d5ce19809a6b97cec3ad12d36..27ed2ec3e6407a34c5635f9bf51762473b35aa68 100644 (file)
@@ -20,7 +20,6 @@ import org.apache.commons.httpclient.auth.MalformedChallengeException;
 import org.apache.commons.httpclient.methods.GetMethod;
 import org.apache.commons.httpclient.params.DefaultHttpParams;
 import org.apache.commons.httpclient.params.HttpParams;
-import org.argeo.cms.internal.runtime.KernelConstants;
 import org.ietf.jgss.GSSContext;
 import org.ietf.jgss.GSSException;
 import org.ietf.jgss.GSSManager;
@@ -41,6 +40,8 @@ public class SpnegoAuthScheme implements AuthScheme {
                }
        }
 
+       private final static String DEFAULT_KERBEROS_SERVICE = "HTTP";
+
        private boolean complete = false;
        private String realm;
 
@@ -100,7 +101,7 @@ public class SpnegoAuthScheme implements AuthScheme {
                } catch (URIException e1) {
                        throw new IllegalStateException("Cannot authenticate", e1);
                }
-               String serverPrinc = KernelConstants.DEFAULT_KERBEROS_SERVICE + "@" + hostname;
+               String serverPrinc = DEFAULT_KERBEROS_SERVICE + "@" + hostname;
 
                try {
                        // Get service's principal name