version 1.15, 2013/05/28 12:34:24
|
version 1.16, 2013/06/05 14:09:26
|
|
|
#include <Pegasus/Common/AuthenticationInfoRep.h> | #include <Pegasus/Common/AuthenticationInfoRep.h> |
| |
#include <Pegasus/Security/Authentication/Linkage.h> | #include <Pegasus/Security/Authentication/Linkage.h> |
|
#include <Pegasus/Security/Authentication/AuthenticationStatus.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
header. | header. |
@param authHeader String containing the Authorization header | @param authHeader String containing the Authorization header |
@param authInfo Reference to AuthenticationInfo object | @param authInfo Reference to AuthenticationInfo object |
@return true on successful authentication, false otherwise |
@return AuthenticationStatus holding http status code and error detail |
*/ | */ |
virtual Boolean authenticate( |
virtual AuthenticationStatus authenticate( |
const String& authHeader, | const String& authHeader, |
AuthenticationInfo* authInfo) = 0; | AuthenticationInfo* authInfo) = 0; |
| |
|
|
@param userName String containing the user name | @param userName String containing the user name |
@param authInfo reference to AuthenticationInfo object that holds the | @param authInfo reference to AuthenticationInfo object that holds the |
authentication information for the given connection. | authentication information for the given connection. |
@return true on successful validation, false otherwise |
@return AuthenticationStatus holding http status code and error detail |
*/ | */ |
virtual Boolean validateUser( |
virtual AuthenticationStatus validateUser( |
const String& userName, | const String& userName, |
AuthenticationInfo* authInfo) = 0; | AuthenticationInfo* authInfo) = 0; |
}; | }; |