#include <random_generator.h>
◆ AlphabetContent
| Enumerator | 
|---|
| AlphabetDigits  |  | 
| AlphabetLowercase  |  | 
| AlphabetUppercase  |  | 
| AlphabetSpecial  |  | 
| AlphabetAll  |  | 
 
 
◆ RandomGeneratorInterface() [1/2]
  
  
      
        
          | mysql_harness::RandomGeneratorInterface::RandomGeneratorInterface  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
explicitdefault   | 
  
 
 
◆ RandomGeneratorInterface() [2/2]
◆ ~RandomGeneratorInterface()
  
  
      
        
          | mysql_harness::RandomGeneratorInterface::~RandomGeneratorInterface  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtualdefault   | 
  
 
 
◆ generate_identifier()
  
  
      
        
          | virtual std::string mysql_harness::RandomGeneratorInterface::generate_identifier  | 
          ( | 
          unsigned  | 
          length,  | 
         
        
           | 
           | 
          unsigned  | 
          alphabet_mask = AlphabetAll  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
pure virtual   | 
  
 
Generates a random string out of selected alphabet. 
- Parameters
 - 
  
    | length | length of string requested  | 
    | alphabet_mask | bitmasmask indicating which alphabet symbol groups should be used for identifier generation (see AlphabetContent enum for possible values that can be or-ed)  | 
  
   
- Returns
 - string with the generated random chars
 
- Exceptions
 - 
  
    | std::invalid_argument | when the alphabet_mask is empty or invalid  | 
  
   
Implemented in mysql_harness::RandomGenerator, and mysql_harness::FakeRandomGenerator.
 
 
◆ generate_strong_password()
  
  
      
        
          | virtual std::string mysql_harness::RandomGeneratorInterface::generate_strong_password  | 
          ( | 
          unsigned  | 
          length | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Generates a random password that adheres to the STRONG password requirements: 
- contains at least 1 digit
 
- contains at least 1 uppercase letter
 
- contains at least 1 lowercase letter
 
- contains at least 1 special character
 
- Parameters
 - 
  
    | length | length of requested password (should be at least 8)  | 
  
   
- Returns
 - string with the generated password
 
- Exceptions
 - 
  
    | std::invalid_argument | when the requested length is less than 8  | 
  
   
Implemented in mysql_harness::RandomGenerator, and mysql_harness::FakeRandomGenerator.
 
 
◆ operator=()
The documentation for this class was generated from the following files: