Repository: cxf Updated Branches: refs/heads/3.0.x-fixes 2c11ef5bc -> 3791ba61c
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/fec396e9 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/fec396e9 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/fec396e9 Branch: refs/heads/3.0.x-fixes Commit: fec396e924f53acbec2e548825f3a3b5186d196a Parents: 2c11ef5 Author: Colm O hEigeartaigh <[email protected]> Authored: Thu Aug 7 11:51:12 2014 +0100 Committer: Colm O hEigeartaigh <[email protected]> Committed: Thu Aug 7 11:59:51 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/fec396e9/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; + } + }
