23#ifndef PASSWORDGENERATOR_H
24#define PASSWORDGENERATOR_H
58 std::string
next(
size_t length = 16);
A random password generator.
Definition passwordgenerator.h:36
PasswordGenerator(PasswordContent contentFlags=PasswordContent::Numeric|PasswordContent::Uppercase|PasswordContent::Lowercase|PasswordContent::Special)
Constructs a PasswordGenerator.
PasswordContent getContentFlags() const
Gets the flags of possible characters in a generated password.
std::string next(size_t length=16)
Generates a new password.
void setContentFlags(PasswordContent contentFlags)
Sets the flags of possible characters in a generated password.
Definition credential.h:30
PasswordContent
Flags to describe the content of a password.
Definition passwordcontent.h:32
@ Uppercase
The password contains uppercase characters.
@ Numeric
The password contains numeric characters.
@ Special
The password contains special characters.
@ Lowercase
The password contains lowercase characters.