This content has been marked as final. Show 3 replies
As this is basic authentication process which do in-general.
We have BASIC / FORM / Cert base.
So I think Authentication is first process you need to fill if you want you can use SSO process to access with authentication every time in such case you can use certbase.
check few examples.
any further help let me know.
I am aware of the auth-method , my constraint is :
Client has deployed this servlet aling with auth-method -BASIC and client dont want to change any thing in the web.xml or any other configuration changes
So i am wondering , if this has to be achieved by programming way , maybe some wat like this url :
still i am stuck because, i have a string strUrl="http://localhost:8080/servlet"
and the API here
needs the request object
Any pointer u can suggest !!!
Socket s = new Socket("localhost", 7001);
BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
PrintStream out = new PrintStream(s.getOutputStream());
out.println("Authorization: Basic d2VibG9naWM6d2VibG9naWM=");
For e.g. if your username and password is weblogic,weblogic, you will have to create a string like this weblogic:weblogic then encode it using base64 and then pass it in the code..
Hope this helps!