windows-nt/Source/XPSP1/NT/net/ias/providers/ntuser/auth/authbase.h
2020-09-26 16:20:57 +08:00

54 lines
1.2 KiB
C++

///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1998, Microsoft Corp. All rights reserved.
//
// FILE
//
// authbase.h
//
// SYNOPSIS
//
// This file declares the class AuthBase.
//
// MODIFICATION HISTORY
//
// 02/12/1998 Original version.
// 03/27/1998 Change exception specification for onAccept.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef _AUTHBASE_H_
#define _AUTHBASE_H_
#include <samutil.h>
///////////////////////////////////////////////////////////////////////////////
//
// CLASS
//
// AuthBase
//
// DESCRIPTION
//
// Base class for all NT-SAM authentication sub-handlers.
//
///////////////////////////////////////////////////////////////////////////////
class AuthBase :
public NtSamHandler
{
public:
virtual HRESULT initialize() throw ();
virtual void finalize() throw ();
protected:
IASAttribute authType;
// Must be overridden by sub-classes to return their Authentication-Type.
virtual DWORD getAuthenticationType() const throw () = 0;
// Called by sub-classes whenever a user has been accepted.
void onAccept(IASRequest& request, HANDLE token);
};
#endif // _AUTHBASE_H_