| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.acplt.oncrpc.server.OncRpcServerAuth
org.acplt.oncrpc.server.OncRpcServerAuthUnix
public final class OncRpcServerAuthUnix
The OncRpcServerAuthNone class handles all protocol issues
 of the ONC/RPC authentication AUTH_UNIX on the server
 side.
| Field Summary | |
|---|---|
|  int | gidContains the group ID of caller supplied through credential. | 
|  int[] | gidsContains a set of group IDs the caller belongs to, as supplied through credential. | 
|  java.lang.String | machinenameContains the machine name of caller supplied through credential. | 
| private  byte[] | shorthandVerfContains the shorthand authentication verifier (credential) to return to the caller to be used with the next ONC/RPC calls. | 
|  int | stampContains timestamp as supplied through credential. | 
|  int | uidContains the user ID of caller supplied through credential. | 
| Constructor Summary | |
|---|---|
| OncRpcServerAuthUnix(XdrDecodingStream xdr)Constructs an OncRpcServerAuthUnixobject and pulls its
 state off an XDR stream. | |
| Method Summary | |
|---|---|
|  int | getAuthenticationType()Returns the type (flavor) of authenticationused. | 
|  byte[] | getShorthandVerifier()Returns the shorthand verifier to be sent back to the caller. | 
|  void | setShorthandVerifier(byte[] shorthandVerf)Sets shorthand verifier to be sent back to the caller. | 
|  void | xdrDecodeCredVerf(XdrDecodingStream xdr)Decodes -- that is: deserializes -- an ONC/RPC authentication object (credential & verifier) on the server side. | 
|  void | xdrEncodeVerf(XdrEncodingStream xdr)Encodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server side. | 
| Methods inherited from class org.acplt.oncrpc.server.OncRpcServerAuth | 
|---|
| xdrNew | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public int stamp
public java.lang.String machinename
public int uid
public int gid
public int[] gids
private byte[] shorthandVerf
| Constructor Detail | 
|---|
public OncRpcServerAuthUnix(XdrDecodingStream xdr)
                     throws OncRpcException,
                            java.io.IOException
OncRpcServerAuthUnix object and pulls its
 state off an XDR stream.
xdr - XDR stream to retrieve the object state from.
OncRpcException - if an ONC/RPC error occurs.
java.io.IOException - if an I/O error occurs.| Method Detail | 
|---|
public final int getAuthenticationType()
authentication
 used.
getAuthenticationType in class OncRpcServerAuthpublic final void setShorthandVerifier(byte[] shorthandVerf)
public final byte[] getShorthandVerifier()
public final void xdrDecodeCredVerf(XdrDecodingStream xdr)
                             throws OncRpcException,
                                    java.io.IOException
xdrDecodeCredVerf in class OncRpcServerAuthOncRpcException - if an ONC/RPC error occurs.
java.io.IOException - if an I/O error occurs.public final void xdrEncodeVerf(XdrEncodingStream xdr)
                         throws OncRpcException,
                                java.io.IOException
xdrEncodeVerf in class OncRpcServerAuthOncRpcException - if an ONC/RPC error occurs.
java.io.IOException - if an I/O error occurs.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||