|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.rpc.Cred | +--com.sun.rpc.CredUnix
The Unix credential. Contains information specific to Unix users and NFS: uid/gid/grplist
Field Summary | |
int |
status
|
Fields inherited from class com.sun.rpc.Cred |
SVC_INTEGRITY,
SVC_NONE,
SVC_PRIVACY |
Constructor Summary | |
CredUnix()
Constructor creates an instance of Unix credential and sets default uid/gid to "nobody". |
|
CredUnix(int uid,
int gid)
Constructor creates an instance of Unix credential with given uid/gid |
Method Summary | |
void |
destroy(Rpc rpc)
|
boolean |
fetchCred(java.lang.String server,
java.lang.String username,
java.lang.String passwd)
Given a username and passwd, obtain Unix creds from the named server. |
int |
getGid()
Get the Unix group id for the user |
int[] |
getGids()
Get the Unix group list for the user |
java.lang.String |
getHome()
Get the user's home directory path |
int |
getUid()
Get the Unix user id for the user |
int |
getUmask()
Get the user's home Unix umask |
void |
init(Connection conn,
int prog,
int vers)
|
boolean |
refresh(Connection conn,
int prog,
int vers)
|
void |
setCred()
Set the cred back to the default: nobody/nobody |
void |
setCred(int uid,
int gid,
int[] gids)
Set the uid, gid |
java.lang.String |
toString()
|
int |
unwrap(Xdr x)
|
void |
validate(byte[] verifier,
int verifiee)
|
void |
wrap(Xdr x,
byte[] arg)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public int status
Constructor Detail |
public CredUnix(int uid, int gid)
public CredUnix()
Method Detail |
public boolean fetchCred(java.lang.String server, java.lang.String username, java.lang.String passwd)
server
- Name of the pcnfsd server that will return the creds.username
- the login name of the user.passwd
- of the user.public void setCred()
public void setCred(int uid, int gid, int[] gids)
public int getUid()
public int getGid()
public int[] getGids()
public java.lang.String getHome()
public int getUmask()
public java.lang.String toString()
public void init(Connection conn, int prog, int vers)
public boolean refresh(Connection conn, int prog, int vers)
public void wrap(Xdr x, byte[] arg)
public int unwrap(Xdr x)
public void validate(byte[] verifier, int verifiee)
public void destroy(Rpc rpc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |