(file) Return to LocalAuthenticator.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Security / Authentication

 1 mike  1.2 //%/////////////////////////////////////////////////////////////////////////////
 2           //
 3           // Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,
 4           // The Open Group, Tivoli Systems
 5           //
 6           // Permission is hereby granted, free of charge, to any person obtaining a
 7           // copy of this software and associated documentation files (the "Software"),
 8           // to deal in the Software without restriction, including without limitation
 9           // the rights to use, copy, modify, merge, publish, distribute, sublicense,
10           // and/or sell copies of the Software, and to permit persons to whom the
11           // Software is furnished to do so, subject to the following conditions:
12           //
13           // The above copyright notice and this permission notice shall be included in
14           // all copies of substantial portions of this software.
15           //
16           // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17           // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18           // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19           // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20           // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21           // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 mike  1.2 // DEALINGS IN THE SOFTWARE.
23           //
24           //==============================================================================
25           //
26           // Author: Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
27           //
28           // Modified By:
29           //
30           //%/////////////////////////////////////////////////////////////////////////////
31           
32           #ifndef Pegasus_LocalAuthenticator_h
33           #define Pegasus_LocalAuthenticator_h
34           
35           #include <Pegasus/Common/Config.h>
36           #include <Pegasus/Common/String.h>
37           #include "Linkage.h"
38           
39           PEGASUS_NAMESPACE_BEGIN
40           
41              
42           /**
43 mike  1.2     This is an abstract class that the local authenticators will extend and 
44               provide the implementation. Sample implementation can be seen in 
45               SecureLocalAuthenticator.cpp
46           */ 
47           class PEGASUS_SECURITY_LINKAGE LocalAuthenticator
48           {
49           public:
50           
51               /** constructor. */ 
52               LocalAuthenticator() { };
53           
54               /** destructor. */ 
55               virtual ~LocalAuthenticator() { };
56           
57               /** authenticate. */ 
58 kumpf 1.3     virtual Boolean authenticate(
59                   const String& userName, 
60                   const String& password) = 0;
61 mike  1.2 
62               /** authenticate. */ 
63               virtual Boolean authenticate(
64 kumpf 1.3         const String& userName, 
65                   const String& secretReceived, 
66                   const String& secretKept) = 0;
67 mike  1.2 
68               /** getAuthResponseHeader. */ 
69               virtual String getAuthResponseHeader(
70 kumpf 1.3         const String& authType, 
71                   const String& userName, 
72 mike  1.2         String& challenge) = 0;
73           };
74           
75           
76           PEGASUS_NAMESPACE_END
77           
78           #endif /* Pegasus_LocalAuthenticator_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2