netbula.ORPC

Class AuthUnix

Implemented Interfaces:
XDT

public class AuthUnix
extends Auth
implements XDT

Use this class for UNIX authentication.

Field Summary

static int
AUTH_UNIX

Constructor Summary

AuthUnix(String mname, int Uid, int Gid, int[] Gids)
Construct an AuthUnix Object.

Method Summary

XDT
Clone()
XDT[]
getArray(int len)
OpaAuth
getCred()
Convert the credential to an OpaAuth object, which can be transfered over the wire.
void
setCred(OpaAuth oa)
Construct Auth class from OpaAuth, which was received over the wire.
void
xdr(XDR xdrs)

Methods inherited from class netbula.ORPC.Auth

getCred, getVerf, setCred, setVerf

Field Details

AUTH_UNIX

public static final int AUTH_UNIX
Field Value:
1

Constructor Details

AuthUnix

public AuthUnix(String mname,
                int Uid,
                int Gid,
                int[] Gids)
Construct an AuthUnix Object.
Parameters:
mname - client machine name
Uid - Unix user id
Gid - Unix group id
Gids - List of group ids

Method Details

Clone

public XDT Clone()
Specified by:
Clone in interface XDT

getArray

public XDT[] getArray(int len)
Specified by:
getArray in interface XDT

getCred

public OpaAuth getCred()
            throws XDRError
Convert the credential to an OpaAuth object, which can be transfered over the wire.
Overrides:
getCred in interface Auth

setCred

public void setCred(OpaAuth oa)
            throws XDRError
Construct Auth class from OpaAuth, which was received over the wire. Basically, this method decodes the oa_data field of the oa object back to the AuthUnix object.
Overrides:
setCred in interface Auth

xdr

public void xdr(XDR xdrs)
            throws XDRError
Specified by:
xdr in interface XDT