Apache Mesos
Public Member Functions | List of all members
mesos::SecretGenerator Class Referenceabstract

The SecretGenerator interface represents a mechanism to create a secret from a principal. More...

#include <secret_generator.hpp>

Inheritance diagram for mesos::SecretGenerator:
mesos::authentication::executor::JWTSecretGenerator mesos::internal::tests::MockSecretGenerator

Public Member Functions

virtual ~SecretGenerator ()
 
virtual process::Future< Secret > generate (const process::http::authentication::Principal &principal)=0
 

Detailed Description

The SecretGenerator interface represents a mechanism to create a secret from a principal.

The secret is meant to contain a token (for example, an HTTP 'Authorization' header) that can be used to authenticate. If used that way, an authenticator will yield the same principal that was passed to the generate method of this module.

Constructor & Destructor Documentation

virtual mesos::SecretGenerator::~SecretGenerator ( )
inlinevirtual

Member Function Documentation

virtual process::Future<Secret> mesos::SecretGenerator::generate ( const process::http::authentication::Principal principal)
pure virtual

The documentation for this class was generated from the following file: