Re: Code review request: Undefined requesting URL in "java.net.Authenticator.getPasswordAuthentication()"

2009-04-15 Thread Max Wang
Hi Chris A new webrev is created at http://cr.openjdk.java.net/~weijun/6578647/webrev.01 Now all HttpCallerInfo creations are inline, so the diff is much clearer. There's one place I didn't call toLowerCase(), the call is moved into NegotiatorImpl right before the service principal name

How to getCanonicalHostName() to a given string?

2009-11-25 Thread Max Wang
Hi All I want to write a test running on a single machine. One requirement is that both "a" and "b" should be resolved to "127.0.0.1", but their getCanonicalHostName() returns "a.one.com" and "b.another.com" separately, so that FQDN name lookup for multiple vhosts is possible. Maybe (?) t

Re: [security-dev 00119]: hg: jdk7/jsn/jdk: 6670362: HTTP/SPNEGO should work across realms

2008-03-20 Thread Weijun Max Wang
Hi Asaf Thanks for watching the list. :) Basically I want to encode "HTTP on host.server.com" into a service principal like "HTTP/[EMAIL PROTECTED]". By changing the nameType to GSSName.NT_HOSTBASED_SERVICE, it means the underlying Kerberos principal should be of the NT-SRV-HST type. According t