Package org.acplt.oncrpc.server
Class OncRpcServerAuthUnix
java.lang.Object
org.acplt.oncrpc.server.OncRpcServerAuthUnix
- All Implemented Interfaces:
OncRpcServerAuth
The
OncRpcServerAuthNone class handles all protocol issues
of the ONC/RPC authentication AUTH_UNIX on the server
side.- Version:
- $Revision: 1.1 $ $Date: 2003/08/13 12:03:51 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Field Summary
FieldsModifier and TypeFieldDescriptionintContains the group ID of caller supplied through credential.int[]Contains a set of group IDs the caller belongs to, as supplied through credential.Contains the machine name of caller supplied through credential.intContains timestamp as supplied through credential.intContains the user ID of caller supplied through credential. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns the type (flavor) ofauthenticationused.final byte[]Returns the shorthand verifier to be sent back to the caller.final voidsetShorthandVerifier(byte[] shorthandVerf) Sets shorthand verifier to be sent back to the caller.final voidDecodes -- that is: deserializes -- an ONC/RPC authentication object (credential & verifier) on the server side.final voidEncodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server side.
-
Field Details
-
stamp
public int stampContains timestamp as supplied through credential. -
machinename
Contains the machine name of caller supplied through credential. -
uid
public int uidContains the user ID of caller supplied through credential. -
gid
public int gidContains the group ID of caller supplied through credential. -
gids
public int[] gidsContains a set of group IDs the caller belongs to, as supplied through credential.
-
-
Constructor Details
-
OncRpcServerAuthUnix
public OncRpcServerAuthUnix()
-
-
Method Details
-
getAuthenticationType
public final int getAuthenticationType()Returns the type (flavor) ofauthenticationused.- Specified by:
getAuthenticationTypein interfaceOncRpcServerAuth- Returns:
- Authentication type used by this authentication object.
-
setShorthandVerifier
public final void setShorthandVerifier(byte[] shorthandVerf) Sets shorthand verifier to be sent back to the caller. The caller then can use this shorthand verifier as the new credential with the next ONC/RPC calls to speed up things up (hopefully).- Parameters:
shorthandVerf- A byte array containing the shorthand verifier.
-
getShorthandVerifier
public final byte[] getShorthandVerifier()Returns the shorthand verifier to be sent back to the caller.- Returns:
- The byte array containing the shorthand verifier.
-
xdrDecodeCredVerf
Decodes -- that is: deserializes -- an ONC/RPC authentication object (credential & verifier) on the server side.- Specified by:
xdrDecodeCredVerfin interfaceOncRpcServerAuth- Parameters:
xdr- An XDR decoding stream- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-
xdrEncodeVerf
Encodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server side.- Specified by:
xdrEncodeVerfin interfaceOncRpcServerAuth- Parameters:
xdr- An XDR encoding stream- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-