Apache Mesos
|
The SecretGenerator interface represents a mechanism to create a secret from a principal. More...
#include <secret_generator.hpp>
Public Member Functions | |
virtual | ~SecretGenerator () |
virtual process::Future< Secret > | generate (const process::http::authentication::Principal &principal)=0 |
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.
|
inlinevirtual |
|
pure virtual |
Implemented in mesos::authentication::executor::JWTSecretGenerator.