Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Client + basic authentication IIS - problem...

843811Apr 2 2007 — edited Apr 2 2007
Hi,

I try to connect to IIS 5 and I've set the checkbox 'Integrated WIndows authentication'

In my client I use:
String credentials=new String("tester:tester");
String auth=new String(credentials.getBytes());
sconnection.setRequestProperty("Authorization", "Basic "
+ auth);

Generally in the webrowser there is a window asking for user and apssword and using tester, tester works.

The client can't be authenticated - ERROR|main | HttpsConnectionJavaClientTest - Response: '401: Unauthorized' for url: 'https://
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2007
Added on Apr 2 2007
4 comments
207 views