35 BOOST_THROW_EXCEPTION(
Error(
"Cannot construct Sha256WithRsa from SignatureType " +
to_string(
getType())));
38 BOOST_THROW_EXCEPTION(
Error(
"KeyLocator is missing in Sha256WithRsa signature"));
43 SignatureSha256WithRsa::unsetKeyLocator()
45 BOOST_THROW_EXCEPTION(
Error(
"KeyLocator cannot be unset in Sha256WithRsa signature"));
Represents a signature of Sha256WithRsa type.
Copyright (c) 2013-2017 Regents of the University of California.
Represents a SignatureInfo TLV element.
bool hasKeyLocator() const
Check if KeyLocator exists in SignatureInfo.
SignatureSha256WithRsa(const KeyLocator &keyLocator=KeyLocator())
Create Sha256WithRsa signature with specified KeyLocator.
tlv::SignatureTypeValue getType() const
Get SignatureType.
std::string to_string(const V &v)
Holds SignatureInfo and SignatureValue in a Data packet.