< prev index next >

test/sun/security/krb5/auto/HttpNegotiateServer.java

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 6578647 6829283 8171340
  27  * @modules java.base/sun.security.util
  28  *          java.security.jgss/sun.security.krb5.internal:+open
  29  *          java.security.jgss/sun.security.jgss
  30  *          java.security.jgss/sun.security.krb5:+open

  31  *          java.security.jgss/sun.security.krb5.internal.crypto
  32  *          java.security.jgss/sun.security.krb5.internal.ktab
  33  *          jdk.security.auth
  34  *          jdk.security.jgss
  35  *          jdk.httpserver
  36  * @run main/othervm HttpNegotiateServer
  37  * @summary Undefined requesting URL in java.net.Authenticator
  38  *          .getPasswordAuthentication()
  39  * @summary HTTP/Negotiate: Authenticator triggered again when
  40  *          user cancels the first one
  41  */
  42 
  43 import com.sun.net.httpserver.Headers;
  44 import com.sun.net.httpserver.HttpContext;
  45 import com.sun.net.httpserver.HttpExchange;
  46 import com.sun.net.httpserver.HttpHandler;
  47 import com.sun.net.httpserver.HttpServer;
  48 import com.sun.net.httpserver.HttpPrincipal;
  49 import com.sun.security.auth.module.Krb5LoginModule;
  50 import java.io.BufferedReader;




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 6578647 6829283 8171340
  27  * @modules java.base/sun.security.util
  28  *          java.security.jgss/sun.security.krb5.internal:+open
  29  *          java.security.jgss/sun.security.jgss
  30  *          java.security.jgss/sun.security.krb5:+open
  31  *          java.security.jgss/sun.security.krb5.internal.ccache
  32  *          java.security.jgss/sun.security.krb5.internal.crypto
  33  *          java.security.jgss/sun.security.krb5.internal.ktab
  34  *          jdk.security.auth
  35  *          jdk.security.jgss
  36  *          jdk.httpserver
  37  * @run main/othervm HttpNegotiateServer
  38  * @summary Undefined requesting URL in java.net.Authenticator
  39  *          .getPasswordAuthentication()
  40  * @summary HTTP/Negotiate: Authenticator triggered again when
  41  *          user cancels the first one
  42  */
  43 
  44 import com.sun.net.httpserver.Headers;
  45 import com.sun.net.httpserver.HttpContext;
  46 import com.sun.net.httpserver.HttpExchange;
  47 import com.sun.net.httpserver.HttpHandler;
  48 import com.sun.net.httpserver.HttpServer;
  49 import com.sun.net.httpserver.HttpPrincipal;
  50 import com.sun.security.auth.module.Krb5LoginModule;
  51 import java.io.BufferedReader;


< prev index next >