root/src/add-ons/kernel/file_systems/nfs4/RPCAuth.h
/*
 * Copyright 2012 Haiku, Inc. All rights reserved.
 * Distributed under the terms of the MIT License.
 *
 * Authors:
 *              Paweł Dziepak, pdziepak@quarnos.org
 */
#ifndef RPCAUTH_H
#define RPCAUTH_H


#include "XDR.h"


namespace RPC {

class Auth {
public:
        inline  const XDR::WriteStream&         Stream() const;

        static  const Auth*                                     CreateNone();
        static  const Auth*                                     CreateSys(uid_t uid, gid_t gid);

private:
                                                                                Auth();

                        XDR::WriteStream                        fStream;
};


inline const XDR::WriteStream&
Auth::Stream() const
{
        return fStream;
}

}               // namespace RPC


#endif  // RPCAUTH_H