42#ifndef _DWMCREDENCECHALLENGERESPONSE_HH_
43#define _DWMCREDENCECHALLENGERESPONSE_HH_
74 bool Create(
const std::string & signingKey,
82 std::istream &
Read(std::istream & is);
89 std::ostream &
Write(std::ostream & os)
const;
97 bool Verify(
const std::string & publicKey,
98 const std::string & challengeString)
const;
101 std::string _response;
Dwm::Credence::Challenge class declaration.
Encapsulates a challenge response.
Definition DwmCredenceChallengeResponse.hh:58
ChallengeResponse(const ChallengeResponse &)=default
Default copy constructor.
bool Verify(const std::string &publicKey, const std::string &challengeString) const
Using the given publicKey of the source of the response, verifies that the response was signed by the...
bool Create(const std::string &signingKey, const Challenge &challenge)
Given a challenge, creates the response using the given signingKey.
std::ostream & Write(std::ostream &os) const
Writes the challenge response to the given ostream os.
ChallengeResponse()=default
Default constructor.
std::istream & Read(std::istream &is)
Reads the challenge response from the given istream is.
Encapsulate a challenge sent to a client or server to verify their idendity during authentication.
Definition DwmCredenceChallenge.hh:57