|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.xfile.XFileExtensionAccessor
com.sun.nfs.XFileExtensionAccessor
public class XFileExtensionAccessor
| Constructor Summary | |
|---|---|
XFileExtensionAccessor(XFile xf)
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getExports()
Get server's export list |
boolean |
loginPCNFSD(java.lang.String host,
java.lang.String username,
java.lang.String password)
Sets the user's RPC credential from Login name and password. |
void |
loginUGID(int uid,
int gid,
int[] gids)
Sets the user's RPC credential to a known uid/gid. |
void |
logoutPCNFSD()
Sets the user's RPC credential to "nobody" |
void |
logoutUGID()
Sets the user's RPC credential to "nobody" |
void |
setNfsHandler(NfsHandler handler)
Assigns an NfsHandler class that allows the application to receive RPC timeout notifications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XFileExtensionAccessor(XFile xf)
| Method Detail |
|---|
public boolean loginPCNFSD(java.lang.String host,
java.lang.String username,
java.lang.String password)
If this method is not called, a default credential is assigned with a UID and GID of "nobody".
host - The name of the host that runs the PCNFSD service.
This does not have to be an NFS server.username - The user's login name.password - The user's password.
This is obscured before transmission to the PCNFSD server.
public void logoutPCNFSD()
public void loginUGID(int uid,
int gid,
int[] gids)
Note: This credential setting method exposes an inherent security hole in RPC AUTH_SYS authentication. The server trusts the client to authenticate the user before setting the UID and GID values. It is possible for a malicious client to allow the UID and/or group ids to be set to allow unauthorized access to other user's files on the server.
Servers can avoid this security hole by exporting NFS filesystem securely - requiring clients to use secure Diffie-Hellman or Kerberos credentials.
If this method is not called, a default credential is assigned with a UID and GID of "nobody".
uid - The user-ID.gid - The group-ID.gids - The group-ID list.public void logoutUGID()
public void setNfsHandler(NfsHandler handler)
handler is used for all
NFS files accessed by the application.
The default handler can be restored by
passing a null handler argument.
handler - An instance of the NfsHandler class.
public java.lang.String[] getExports()
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||