Class representing authenticalion policy factor.  
 More...
#include <authentication_policy.h>
Class representing authenticalion policy factor. 
 
◆ Factor()
      
        
          | authentication_policy::Factor::Factor  | 
          ( | 
          const std::string &  | 
          mandatory_plugin,  | 
        
        
           | 
           | 
          const std::string &  | 
          default_plugin  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | [in] | mandatory_plugin | mandatory plugin name  | 
    | [in] | default_plugin | default plugin name  | 
  
   
 
 
◆ get_default_plugin()
  
  
      
        
          | const std::string & authentication_policy::Factor::get_default_plugin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get default plugin name. 
- Returns
 - reference to the plugin name. 
 
 
 
◆ get_mandatory_or_default_plugin()
  
  
      
        
          | const std::string & authentication_policy::Factor::get_mandatory_or_default_plugin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get mandatory plugin name (if defined) else the default plugin name. 
This is used e.g. while creating user when the statement doesn't provide plugin name for nth factor.
- Returns
 - reference to the plugin name. 
 
 
 
◆ get_mandatory_plugin()
  
  
      
        
          | const std::string & authentication_policy::Factor::get_mandatory_plugin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get mandatory plugin name. 
- Returns
 - reference to the plugin name. 
 
 
 
◆ is_default_specified()
  
  
      
        
          | bool authentication_policy::Factor::is_default_specified  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Has the factor a default plugin specified? 
- Return values
 - 
  
    | true | the factor has a default plugin  | 
    | false | the factor doesn't have a default plugin  | 
  
   
 
 
◆ is_mandatory_specified()
  
  
      
        
          | bool authentication_policy::Factor::is_mandatory_specified  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Has the factor a concrete mandatory auth plugin specified? 
- Return values
 - 
  
    | true | the factor has a mandatory plugin  | 
    | false | the factor doesn't have a mandatory plugin  | 
  
   
 
 
◆ is_optional()
  
  
      
        
          | bool authentication_policy::Factor::is_optional  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Is the factor optional (may be omitted)? 
- Return values
 - 
  
    | true | the factor is optional  | 
    | false | the factor is not optional  | 
  
   
 
 
◆ is_whichever()
  
  
      
        
          | bool authentication_policy::Factor::is_whichever  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Is the factor whichever (any auth plugin may be used for it)? 
- Return values
 - 
  
    | true | the factor is whichever  | 
    | false | the factor is not whichever  | 
  
   
 
 
◆ set_default()
  
  
      
        
          | void authentication_policy::Factor::set_default  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
Set default to system defined. 
It is used for 1. factor to avoid undefined default authentication. 
 
 
◆ Policy
◆ default_plugin
  
  
      
        
          | std::string authentication_policy::Factor::default_plugin | 
         
       
   | 
  
private   | 
  
 
 
◆ mandatory_plugin
  
  
      
        
          | std::string authentication_policy::Factor::mandatory_plugin | 
         
       
   | 
  
private   | 
  
 
If empty: the factor is optional If "*" : the factor may be whichever plugin Else : mandatory plugin name. 
 
 
The documentation for this class was generated from the following files: