You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/02/04 16:33:09 UTC

[2/2] cxf-fediz git commit: Fixing the RealmParser following CXF changes

Fixing the RealmParser following CXF changes


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/48f12d23
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/48f12d23
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/48f12d23

Branch: refs/heads/master
Commit: 48f12d2339f3269f5c2202127a0dc4e7144bfe40
Parents: 2546748
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Thu Feb 4 15:32:48 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Thu Feb 4 15:32:48 2016 +0000

----------------------------------------------------------------------
 .../apache/cxf/fediz/service/sts/realms/UriRealmParser.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/48f12d23/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
----------------------------------------------------------------------
diff --git a/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java b/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
index feebc7d..c39dcd8 100644
--- a/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
+++ b/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/realms/UriRealmParser.java
@@ -22,8 +22,6 @@ package org.apache.cxf.fediz.service.sts.realms;
 import java.util.Map;
 import java.util.StringTokenizer;
 
-import javax.xml.ws.WebServiceContext;
-
 import org.apache.cxf.sts.RealmParser;
 import org.apache.cxf.ws.security.sts.provider.STSException;
 import org.slf4j.Logger;
@@ -36,8 +34,8 @@ public class UriRealmParser implements RealmParser {
     private Map<String, Object> realmMap;
 
     @Override
-    public String parseRealm(WebServiceContext context) throws STSException {
-        String url = (String)context.getMessageContext().get("org.apache.cxf.request.url");
+    public String parseRealm(Map<String, Object> messageContext) throws STSException {
+        String url = (String)messageContext.get("org.apache.cxf.request.url");
 
         // Get the realm of the request url
         // Example: https://localhost:9443/fediz-idp-sts/REALMA/STSServiceTransport