Main Page Class Hierarchy Compound List Compound Members DefaultSecurityCallback Class Reference
Invoked when a new connection is being made to the middleware. More...
Public Methods
DefaultSecurityCallback (const char *username, const char *password) Constructor for the callback object. void onGetUsername (char **username, SoamInt32 *length) Default implementation to return the username provided to the constructor. void onGetPassword (char **password, SoamInt32 *length) Default implementation to return the password privided to the constructor. void onGetTTL (char **ttl, SoamInt32 *length) Default implementation to return the time to live for any generated token. Detailed Description
Invoked when a new connection is being made to the middleware.This represents a default implementation that makes use of the default security implementation offered by the middleware. Developers can inherit for this default implementation to implement any extensions required.
- See also:
- SoamFactory::connect() , ConnectionSecurityCallback
Constructor & Destructor Documentation
DefaultSecurityCallback ( const char * username, const char * password )
Constructor for the callback object.
- Parameters:
username [IN] - username to be associated with the connection. A null value passed for this parameter will be treated as an empty string. password [IN] - password to be used in combination with the username for authentication. A null value passed for this parameter will be treated as an empty string. Member Function Documentation
void onGetUsername ( char ** username, SoamInt32 * length )
Default implementation to return the username provided to the constructor.
- Parameters:
username [OUT] - username to be returned in binary form. length [OUT] - length of the username in bytes.
- See also:
- ConnectionSecurityCallback::onGetUsername for details.
void onGetPassword ( char ** password, SoamInt32 * length )
Default implementation to return the password privided to the constructor.
- Parameters:
password [OUT] - password to be returned in binary form. length [OUT] - length of the password in bytes.
- See also:
- ConnectionSecurityCallback::onGetPassword for details.
void onGetTTL ( char ** ttl, SoamInt32 * length )
Default implementation to return the time to live for any generated token.
- Parameters:
ttl [OUT] - time to live to be returned in binary form. length [OUT] - length of the time to live in bytes.
- See also:
- ConnectionSecurityCallback::onGetTTL for details.
Date Modified: 3 Nov 2008
Platform Support: support@platform.com
Platform Information Development: doc@platform.com
Platform Computing. Accelerating Intelligence(TM).
Copyright © 2001-2008 Platform Computing Corporation. All rights reserved.