All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jnfs.FileServerHandle
FileServer
at hostname
and
authenticate user
using the Signer
specified by key
.
FileServer
at hostname
, load the
Signer
stored in signerpathname
, and
authenticate user
using that key.
FileServer
at hostname
, load the
Signer
stored in signerpathname
, and
authenticate user
using that key.
FileServer.getFile()
.
FileServer.getFile()
.
FileServer.getFileInputStream()
.
FileServer.getFileInputStream()
.
FileServer.getFileOutputStream()
.
FileServer.getFileOutputStream()
.
FileServer.getFileOutputStream()
.
FileServer.getFileOutputStream()
.
RemoteFileReader.RemoteFileReader()
.
RemoteFileReader.RemoteFileReader()
.
RemoteFileWriter.RemoteFileWriter()
.
RemoteFileWriter.RemoteFileWriter()
.
RemoteFileWriter.RemoteFileWriter()
.
RemoteFileWriter.RemoteFileWriter()
.
FileServer.getRandomAccessFile()
.
FileServer.getRandomAccessFile()
.
FileServer.getUser()
.
FileServer.getUsernames()
.
FileServer.getUsers()
.
pathname
on the local filesystem.
UserManager.putUser()
.
UserManager.removeUser()
.
UserManager.removeUser()
.
UserManager.save()
.
protected FileServer servertoken
protected Token token
public FileServerHandle(String hostname, URL signerURL) throws IOException, UnknownHostException, NotBoundException, RemoteException, InvalidKeyException, AuthenticationException
FileServer
at hostname
, load the
Signer
stored in signerpathname
, and
authenticate user
using that key.
Signer
in signerpathname
fails.
FileServer
cannot be contacted.
FileServer
cannot be contacted.
FileServer
cannot be contacted.
Signer
is incompatible with the
security algorithm used.
user
fails.
public FileServerHandle(String hostname, String signerpathname) throws IOException, UnknownHostException, NotBoundException, RemoteException, InvalidKeyException, AuthenticationException
FileServer
at hostname
, load the
Signer
stored in signerpathname
, and
authenticate user
using that key.
Signer
in signerpathname
fails.
FileServer
cannot be contacted.
FileServer
cannot be contacted.
FileServer
cannot be contacted.
Signer
is incompatible with the
security algorithm used.
user
fails.
public FileServerHandle(String hostname, Signer signer) throws UnknownHostException, NotBoundException, RemoteException, InvalidKeyException, AuthenticationException
FileServer
at hostname
and
authenticate user
using the Signer
specified by key
.
FileServer
cannot be contacted.
FileServer
cannot be contacted.
FileServer
cannot be contacted.
Signer
is incompatible with the
security algorithm used.
user
fails.
public static final Signer loadSigner(URL url) throws IOException
public static final Signer loadSigner(String pathname) throws IOException
pathname
on the local filesystem.
public final RemoteFile getFile(String path) throws RemoteException, AuthenticationException, FileTableFullException
FileServer.getFile()
.
Requests the RemoteFile
from the stored FileServer
reference using the stored Token
.
null
.
user
fails.
public final RemoteFile getFile(File file) throws RemoteException, AuthenticationException, FileTableFullException
FileServer.getFile()
.
Requests the RemoteFile
from the stored FileServer
reference using the stored Token
.
null
.
user
fails.
public final RemoteFileInputStream getFileInputStream(String pathname) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getFileInputStream()
.
Requests the RemoteFileInputStream
from the stored
FileServer reference using the stored Token
.
checkRead
method is called with the pathname
of this File
argument to see if the
application is allowed read access to the file.
user
fails.
public final RemoteFileInputStream getFileInputStream(File file) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getFileInputStream()
.
Requests the RemoteFileInputStream
from the stored
FileServer reference using the stored Token
.
checkRead
method is called with the pathname
of this File
argument to see if the
application is allowed read access to the file.
user
fails.
public final RemoteFileOutputStream getFileOutputStream(String pathname) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getFileOutputStream()
.
Requests the RemoteFileOutputStream
from the stored
FileServer reference using the stored Token
.
checkWrite
method is called with the pathname
of the File
argument to see if the
application is allowed write access to the file. This may
result in a security exception.
user
fails.
public final RemoteFileOutputStream getFileOutputStream(File file) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getFileOutputStream()
.
Requests the RemoteFileOutputStream
from the stored
FileServer reference using the stored Token
.
checkWrite
method is called with the pathname
of the File
argument to see if the
application is allowed write access to the file. This may
result in a security exception.
user
fails.
public final RemoteFileOutputStream getFileOutputStream(String pathname, boolean append) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getFileOutputStream()
.
Requests the RemoteFileOutputStream
from the stored
FileServer reference using the stored Token
.
checkWrite
method is called with the pathname
of the File
argument to see if the
application is allowed write access to the file. This may
result in a security exception.
user
fails.
public final RemoteFileOutputStream getFileOutputStream(File file, boolean append) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getFileOutputStream()
.
Requests the RemoteFileOutputStream
from the stored
FileServer reference using the stored Token
.
checkWrite
method is called with the pathname
of the File
argument to see if the
application is allowed write access to the file. This may
result in a security exception.
user
fails.
public final RemoteRandomAccessFile getRandomAccessFile(String pathname, String mode) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getRandomAccessFile()
.
Requests the RemoteRandomAccessFile
from the stored
FileServer reference using the stored Token
.
"r"
or to "rw"
.
checkRead
method is called with the name
argument to see if the application is allowed read access
to the file. If the mode argument is equal to
"rw"
, its checkWrite
method also
is called with the name argument to see if the application
is allowed write access to the file. Either of these may
result in a security exception.
user
fails.
public final RemoteRandomAccessFile getRandomAccessFile(File file, String mode) throws IOException, AuthenticationException, PermissionDeniedException
FileServer.getRandomAccessFile()
.
Requests the RemoteRandomAccessFile
from the stored
FileServer reference using the stored Token
.
"r"
or to "rw"
.
checkRead
method is called with the name
argument to see if the application is allowed read access
to the file. If the mode argument is equal to
"rw"
, its checkWrite
method also
is called with the name argument to see if the application
is allowed write access to the file. Either of these may
result in a security exception.
user
fails.
public final RemoteFileReader getFileReader(String pathname) throws IOException, AuthenticationException, PermissionDeniedException
RemoteFileReader.RemoteFileReader()
.
Instantiates a RemoteFileReader
using the stored
FileServer reference and Token
.
user
fails.
public final RemoteFileReader getFileReader(File file) throws IOException, AuthenticationException, PermissionDeniedException
RemoteFileReader.RemoteFileReader()
.
Instantiates a RemoteFileReader
using the stored
FileServer reference and Token
.
user
fails.
public final RemoteFileWriter getFileWriter(String pathname) throws IOException, AuthenticationException, PermissionDeniedException
RemoteFileWriter.RemoteFileWriter()
.
Instantiates a RemoteFileWriter
using the stored
FileServer reference and Token
.
user
fails.
public final RemoteFileWriter getFileWriter(String pathname, boolean append) throws IOException, AuthenticationException, PermissionDeniedException
RemoteFileWriter.RemoteFileWriter()
.
Instantiates a RemoteFileWriter
using the stored
FileServer reference and Token
.
user
fails.
public final RemoteFileWriter getFileWriter(File file) throws IOException, AuthenticationException, PermissionDeniedException
RemoteFileWriter.RemoteFileWriter()
.
Instantiates a RemoteFileWriter
using the stored
FileServer reference and Token
.
user
fails.
public final RemoteFileWriter getFileWriter(File file, boolean append) throws IOException, AuthenticationException, PermissionDeniedException
RemoteFileWriter.RemoteFileWriter()
.
Instantiates a RemoteFileWriter
using the stored
FileServer reference and Token
.
user
fails.
public final String getRootDirectoryName() throws RemoteException
public final Enumeration getUsers() throws RemoteException, AuthenticationException
FileServer.getUsers()
.
user
fails.
public final Enumeration getUsernames() throws RemoteException, AuthenticationException
FileServer.getUsernames()
.
user
fails.
public final FileSystemUser getUser(String name) throws RemoteException, AuthenticationException
FileServer.getUser()
.
user
fails.
public final void putUser(FileSystemUser user) throws RemoteException, AuthenticationException
UserManager.putUser()
.
admin
fails.
public final boolean removeUser(FileSystemUser user) throws RemoteException, AuthenticationException
UserManager.removeUser()
.
admin
fails.
public final boolean removeUser(String username) throws RemoteException, AuthenticationException
UserManager.removeUser()
.
admin
fails.
public final boolean save() throws RemoteException, AuthenticationException
UserManager.save()
.
admin
fails.
All Packages Class Hierarchy This Package Previous Next Index