src/share/classes/sun/net/www/protocol/http/spnego/NegotiatorImpl.java

Print this page

        

*** 21,39 **** * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. */ ! package sun.net.www.protocol.http; import java.io.IOException; import org.ietf.jgss.GSSContext; import org.ietf.jgss.GSSException; import org.ietf.jgss.GSSName; import org.ietf.jgss.Oid; import sun.security.jgss.GSSManagerImpl; import sun.security.jgss.GSSUtil; import sun.security.jgss.HttpCaller; /** --- 21,41 ---- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. */ ! package sun.net.www.protocol.http.spnego; import java.io.IOException; import org.ietf.jgss.GSSContext; import org.ietf.jgss.GSSException; import org.ietf.jgss.GSSName; import org.ietf.jgss.Oid; + import sun.net.www.protocol.http.HttpCallerInfo; + import sun.net.www.protocol.http.Negotiator; import sun.security.jgss.GSSManagerImpl; import sun.security.jgss.GSSUtil; import sun.security.jgss.HttpCaller; /**
*** 131,140 **** --- 133,143 ---- /** * Return the first token of GSS, in SPNEGO, it's called NegTokenInit * @return the first token */ + @Override public byte[] firstToken() { return oneToken; } /**
*** 141,150 **** --- 144,154 ---- * Return the rest tokens of GSS, in SPNEGO, it's called NegTokenTarg * @param token the token received from server * @return the next token * @throws java.io.IOException if the token cannot be created successfully */ + @Override public byte[] nextToken(byte[] token) throws IOException { try { return context.initSecContext(token, 0, token.length); } catch (GSSException e) { if (DEBUG) {