• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass user credentials using Java

 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic