22 #ifndef NDN_SECURITY_SIGNING_INFO_HPP
23 #define NDN_SECURITY_SIGNING_INFO_HPP
25 #include "../name.hpp"
26 #include "../signature-info.hpp"
39 class Error :
public std::runtime_error
44 :
std::runtime_error(what)
144 m_digestAlgorithm = algorithm;
153 return m_digestAlgorithm;
190 #endif // NDN_SECURITY_SIGNING_INFO_HPP
SigningInfo(SignerType signerType=SIGNER_TYPE_NULL, const Name &signerName=EMPTY_NAME, const SignatureInfo &signatureInfo=EMPTY_SIGNATURE_INFO)
Constructor.
Copyright (c) 2013-2016 Regents of the University of California.
const Name & getSignerName() const
void setSigningCertName(const Name &certificateName)
Set signer as a certificate with name certificateName.
use sha256 digest, no signer needs to be specified
Signing parameters passed to KeyChain.
std::ostream & operator<<(std::ostream &os, CommandInterestValidator::ErrorCode error)
static const Name EMPTY_NAME
void setSigningIdentity(const Name &identity)
Set signer as an identity with name identity.
no signer is specified, use default setting or follow the trust schema
void setSha256Signing()
Set Sha256 as the signing method.
void setSignatureInfo(const SignatureInfo &signatureInfo)
Set a semi-prepared SignatureInfo;.
const SignatureInfo & getSignatureInfo() const
Error(const std::string &what)
void setDigestAlgorithm(const DigestAlgorithm &algorithm)
Set the digest algorithm for public key operations.
Name abstraction to represent an absolute name.
signer is a certificate, use it directly
signer is a key, use its default certificate
void setSigningKeyName(const Name &keyName)
Set signer as a key with name keyName.
signer is an identity, use its default key and default certificate
DigestAlgorithm getDigestAlgorithm() const
static const SignatureInfo EMPTY_SIGNATURE_INFO
SignerType getSignerType() const