cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] git commit: Add the ability to specify a Kerberos OID Service NameType
Date Thu, 07 Aug 2014 11:20:06 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 46687ecac -> d4cba8cc6


Add the ability to specify a Kerberos OID Service NameType


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

Branch: refs/heads/2.7.x-fixes
Commit: 056571704b9e3e839bbccbcdae44e7153324961e
Parents: 46687ec
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Aug 7 11:51:12 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Aug 7 12:14:43 2014 +0100

----------------------------------------------------------------------
 .../transport/http/auth/AbstractSpnegoAuthSupplier.java  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/05657170/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
index 66c9de9..e1180e1 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
@@ -61,6 +61,7 @@ public abstract class AbstractSpnegoAuthSupplier {
     private String realm;
     private boolean credDelegation;
     private Configuration loginConfig;
+    private Oid serviceNameType;
     
     public String getAuthorization(AuthorizationPolicy authPolicy,
                                    URI currentURI,
@@ -144,7 +145,7 @@ public abstract class AbstractSpnegoAuthSupplier {
                             Message message) throws GSSException, 
         LoginException {
         GSSManager manager = GSSManager.getInstance();
-        GSSName serverName = manager.createName(spn, null);
+        GSSName serverName = manager.createName(spn, serviceNameType);
 
         GSSCredential delegatedCred = 
             (GSSCredential)message.getContextualProperty(GSSCredential.class.getName());
@@ -218,4 +219,12 @@ public abstract class AbstractSpnegoAuthSupplier {
         this.loginConfig = config;
     }
 
+    public Oid getServiceNameType() {
+        return serviceNameType;
+    }
+
+    public void setServiceNameType(Oid serviceNameType) {
+        this.serviceNameType = serviceNameType;
+    }
+
 }


Mime
View raw message