com.distinct.rpc
Class AuthUnix

java.lang.Object
  |
  +--com.distinct.rpc.Auth
        |
        +--com.distinct.rpc.AuthUnix
All Implemented Interfaces:
java.io.Serializable, XDRType

public class AuthUnix
extends Auth

Implements AUTH_UNIX authentication.

See Also:
Auth, AuthShort, Serialized Form

Constructor Summary
AuthUnix(Auth auth)
          Type-converter; Creates an authenticator of flavor AUTH_UNIX from a given authenticator of any type.
AuthUnix(int time, java.lang.String machname, int uid, int gid, int[] gids)
          Creates an authenticator of flavor AUTH_UNIX.
 
Method Summary
 int getGid()
          Gets the authenticator's group identifier.
 int[] getGids()
          Gets the authenticator's additional group identifiers.
 java.lang.String getMachineName()
          Gets the authenticator's machinename.
 int getTime()
          Gets the authenticator's timestamp.
 int getUid()
          Gets the authenticator's user identifier.
 void setGid(int gid)
          Sets the authenticator's group identifier.
 void setGids(int[] gids)
          Sets the authenticator's additional group identifiers.
 void setMachineName(java.lang.String name)
          Sets the authenticator's machinename.
 void setTime(int time)
          Sets the authenticator's timestamp.
 void setUid(int uid)
          Sets the authenticator's user identifier.
 void xdr_decode(XDRStream xdrs)
          Decodes an authenticator in compliance to RFC 1832 (XDR).
 
Methods inherited from class com.distinct.rpc.Auth
getAuthOpaque, getFlavor, setAuthOpaque, setFlavor, xdr_encode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthUnix

public AuthUnix(int time,
                java.lang.String machname,
                int uid,
                int gid,
                int[] gids)
Creates an authenticator of flavor AUTH_UNIX.
Parameters:
time - The authenticator's timestamp.
machname - The authenticator's machinename.
uid - The authenticator's user identifier.
gid - The authenticator's group identifier.
gids - The authenticator's additional group identifiers.

AuthUnix

public AuthUnix(Auth auth)
         throws RPCError
Type-converter; Creates an authenticator of flavor AUTH_UNIX from a given authenticator of any type.
Parameters:
auth - Authenticator of any type.
Method Detail

getTime

public int getTime()
Gets the authenticator's timestamp.
Returns:
The authenticator's timestamp.

setTime

public void setTime(int time)
Sets the authenticator's timestamp.
Parameters:
time - The authenticator's timestamp.

getMachineName

public java.lang.String getMachineName()
Gets the authenticator's machinename.
Returns:
The authenticator's machinename.

setMachineName

public void setMachineName(java.lang.String name)
Sets the authenticator's machinename.
Parameters:
name - The authenticator's machinename.

getUid

public int getUid()
Gets the authenticator's user identifier.
Returns:
The authenticator's user identifier.

setUid

public void setUid(int uid)
Sets the authenticator's user identifier.
Parameters:
uid - The authenticator's user identifier.

getGid

public int getGid()
Gets the authenticator's group identifier.
Returns:
The authenticator's group identifier.

setGid

public void setGid(int gid)
Sets the authenticator's group identifier.
Parameters:
gid - The authenticator's group identifier.

getGids

public int[] getGids()
Gets the authenticator's additional group identifiers.
Returns:
The authenticator's additional group identifiers.

setGids

public void setGids(int[] gids)
Sets the authenticator's additional group identifiers.
Parameters:
gids - The authenticator's additional group identifiers.

xdr_decode

public void xdr_decode(XDRStream xdrs)
                throws RPCError
Decodes an authenticator in compliance to RFC 1832 (XDR).
Overrides:
xdr_decode in class Auth
Parameters:
xdrs - The XDR input stream.