"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/impl/auth/GGSSchemeBase.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

GGSSchemeBase.java  (httpcomponents-client-4.5.6-src):GGSSchemeBase.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 123 skipping to change at line 123
final GSSName serverName = manager.createName("HTTP@" + authServer, GSSN ame.NT_HOSTBASED_SERVICE); final GSSName serverName = manager.createName("HTTP@" + authServer, GSSN ame.NT_HOSTBASED_SERVICE);
final GSSCredential gssCredential; final GSSCredential gssCredential;
if (credentials instanceof KerberosCredentials) { if (credentials instanceof KerberosCredentials) {
gssCredential = ((KerberosCredentials) credentials).getGSSCredential (); gssCredential = ((KerberosCredentials) credentials).getGSSCredential ();
} else { } else {
gssCredential = null; gssCredential = null;
} }
final GSSContext gssContext = createGSSContext(manager, oid, serverName, gssCredential); final GSSContext gssContext = createGSSContext(manager, oid, serverName, gssCredential);
if (input != null) { return input != null
return gssContext.initSecContext(input, 0, input.length); ? gssContext.initSecContext(input, 0, input.length)
} else { : gssContext.initSecContext(new byte[] {}, 0, 0);
return gssContext.initSecContext(new byte[] {}, 0, 0);
}
} }
GSSContext createGSSContext( GSSContext createGSSContext(
final GSSManager manager, final GSSManager manager,
final Oid oid, final Oid oid,
final GSSName serverName, final GSSName serverName,
final GSSCredential gssCredential) throws GSSException { final GSSCredential gssCredential) throws GSSException {
final GSSContext gssContext = manager.createContext(serverName.canonical ize(oid), oid, gssCredential, final GSSContext gssContext = manager.createContext(serverName.canonical ize(oid), oid, gssCredential,
GSSContext.DEFAULT_LIFETIME); GSSContext.DEFAULT_LIFETIME);
gssContext.requestMutualAuth(true); gssContext.requestMutualAuth(true);
 End of changes. 1 change blocks. 
5 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)