This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to pass user credentials using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to pass user credentials using Java" Watch "How to pass user credentials using Java" New topic
Author

How to pass user credentials using Java

Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268
Hi,

I want to access a File which is on a different machine using Java . I need to pass Username and Password so that I can access the file .

How can I do this ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41029
    
  43
What kind of file system is this?

If it's SMB, have a look at the jCIFS library, which emulates the java.io.File API for SMB filesystems. Its SmbFile class lets you open files with username/password.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass user credentials using Java
 
Similar Threads
access different file system
access different file system
unix filepath to file class
Access Content from remote FileShare
Pulling file via HTTP URL - Uses Authentication