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

Print this page

        

@@ -21,19 +21,21 @@
  * 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;
+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,10 +133,11 @@
 
     /**
      * Return the first token of GSS, in SPNEGO, it's called NegTokenInit
      * @return the first token
      */
+    @Override
     public byte[] firstToken() {
         return oneToken;
     }
 
     /**

@@ -141,10 +144,11 @@
      * 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) {