Password cache used for caching_sha2_authentication.  
 More...
#include <i_sha2_password.h>
Password cache used for caching_sha2_authentication. 
 
◆ password_cache
◆ SHA2_password_cache()
  
  
      
        
          | sha2_password::SHA2_password_cache::SHA2_password_cache  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ ~SHA2_password_cache()
  
  
      
        
          | sha2_password::SHA2_password_cache::~SHA2_password_cache  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ add()
      
        
          | bool sha2_password::SHA2_password_cache::add  | 
          ( | 
          const std::string &  | 
          authorization_id,  | 
        
        
           | 
           | 
          const sha2_cache_entry &  | 
          entry_to_be_cached  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Add an entry in cache We manage our own memory. 
- Parameters
 - 
  
    | [in] | authorization_id | Key  | 
    | [in] | entry_to_be_cached | Value | 
  
   
- Returns
 - status of addition 
 
- Return values
 - 
  
    | false | Successful insertion  | 
    | true | Error  | 
  
   
 
 
◆ clear_cache()
      
        
          | void sha2_password::SHA2_password_cache::clear_cache  | 
          ( | 
           | ) | 
           | 
        
      
 
Clear the cache - Release all memory. 
 
 
◆ remove()
      
        
          | bool sha2_password::SHA2_password_cache::remove  | 
          ( | 
          const std::string &  | 
          authorization_id | ) | 
           | 
        
      
 
Remove an entry from the cache. 
- Parameters
 - 
  
    | [in] | authorization_id | AuthID to search against | 
  
   
- Returns
 - out of the deletion 
 
- Return values
 - 
  
    | false | Entry successfully removed  | 
    | true | Error removing the entry  | 
  
   
 
 
◆ search()
      
        
          | bool sha2_password::SHA2_password_cache::search  | 
          ( | 
          const std::string &  | 
          authorization_id,  | 
        
        
           | 
           | 
          sha2_cache_entry &  | 
          cache_entry  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Search an entry from the cache. 
- Parameters
 - 
  
    | [in] | authorization_id | AuthID to search against  | 
    | [out] | cache_entry | Stored Password for given AuthID | 
  
   
Assumption : Memory for password is allocated by the caller.
- Returns
 - Status of search operation 
 
- Return values
 - 
  
    | false | Entry found. Password contains the stored credential  | 
    | true | Entry not found.  | 
  
   
 
 
◆ size()
  
  
      
        
          | size_t sha2_password::SHA2_password_cache::size  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Returns number of cache entries present 
 
 
 
◆ m_password_cache
The documentation for this class was generated from the following files: