cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] git commit: Add the ability to specify a Kerberos OID Service NameType
Date Thu, 07 Aug 2014 10:56:14 GMT
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/89f74abd
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/89f74abd
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/89f74abd

Branch: refs/heads/master
Commit: 89f74abdb3c2571e6a60d5955870ac00315350a3
Parents: df669c6
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 11:55:53 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/89f74abd/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