File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Smart Card Problem in Java with server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Smart Card Problem in Java with server" Watch "Smart Card Problem in Java with server" New topic
Author

Smart Card Problem in Java with server

Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
Hi everybody.I am using smart card authentication in my web application.Everything is ok on my localhost.I can login with password.When I deployed application in server.Server does not read data from smart card but when I connect with remote desktop I can read data from smart card.I do not know the reason.Any idea?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39568
    
  27
The smart card reader is a physical device attached to your local machine? How does it interact with the web app?


Ping & DNS - updated with new look and Ping home screen widget
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

Welcome to the Ranch.

Based on the information you have provided, looks like you need to move the 'card reading logic" from the server to the client. It would be better if you TellTheDetails


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
Yes smart card is physical device.
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
When I open application in my computer's browser which is deployed on server.If also I connected with RDP to this server which my application deployed everything is ok.When I close RDP I get exception.Message of exception is "Token has been removed".
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39568
    
  27
And the device is connected to your local machine, not the server? Again, how does it interact with the web app?
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5
Yes smart card connect to my local machine but my app is in server.Problem is that I think the server did not know smart card connected or not.But when remote desktop connected to server server know smart card is ok.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39568
    
  27
It sounds like this is the crucial question:
Again, how does it interact with the web app?

What should be interacting with the card reader is the web page, not the web app.
Afsun Khammadli
Greenhorn

Joined: Nov 19, 2013
Posts: 5


This is my method which I pass password and it return cert as String
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Smart Card Problem in Java with server
 
Similar Threads
smart card reading software ?
Access usb smart card
sql database on smartcards.
java application and IE
smart card integration on jsp page