Signature
interface. Provides interface for handling a signature and the corresponding OCSP response properties.
More...
#include <Signature.h>
|
static const std::string | POLv1 = "POLv1" |
|
static const std::string | POLv2 = "POLv2" |
|
Signature
interface. Provides interface for handling a signature and the corresponding OCSP response properties.
◆ ~Signature()
Signature::~Signature |
( |
| ) |
|
|
virtualdefault |
◆ Signature()
Creates an new empty signature.
◆ ArchiveTimeStampCertificate()
X509Cert Signature::ArchiveTimeStampCertificate |
( |
| ) |
const |
|
virtual |
Returns signature Archive TimeStampToken certificate.
◆ ArchiveTimeStampTime()
string Signature::ArchiveTimeStampTime |
( |
| ) |
const |
|
virtual |
Returns signature Archive TimeStampToken time.
◆ city()
string Signature::city |
( |
| ) |
const |
|
virtual |
Returns signature production city.
◆ claimedSigningTime()
digidoc::Signature::claimedSigningTime |
( |
| ) |
const |
|
pure virtual |
Returns signature computer time that was used for signing.
◆ countryName()
string Signature::countryName |
( |
| ) |
const |
|
virtual |
Returns signature production country.
◆ dataToSign()
digidoc::Signature::dataToSign |
( |
| ) |
const |
|
pure virtual |
Digest to sign with token
◆ extendSignatureProfile() [1/2]
void Signature::extendSignatureProfile |
( |
const std::string & |
profile | ) |
|
|
virtual |
◆ extendSignatureProfile() [2/2]
void Signature::extendSignatureProfile |
( |
Signer * |
signer | ) |
|
|
virtual |
Extends signature to selected profile
- Parameters
-
◆ id()
digidoc::Signature::id |
( |
| ) |
const |
|
pure virtual |
◆ messageImprint()
vector< unsigned char > Signature::messageImprint |
( |
| ) |
const |
|
virtual |
Returns signed signature hash message imprint value (TM - OCSP Nonce, TS - TimeStamp value)
Referenced by OCSPNonce().
◆ OCSPCertificate()
X509Cert Signature::OCSPCertificate |
( |
| ) |
const |
|
virtual |
Returns signature OCSP responder certificate.
◆ OCSPNonce()
vector< unsigned char > Signature::OCSPNonce |
( |
| ) |
const |
|
virtual |
◆ OCSPProducedAt()
string Signature::OCSPProducedAt |
( |
| ) |
const |
|
virtual |
Returns signature OCSP producedAt timestamp.
◆ policy()
string Signature::policy |
( |
| ) |
const |
|
virtual |
Returns signature policy when it is available or empty string.
◆ postalCode()
string Signature::postalCode |
( |
| ) |
const |
|
virtual |
Returns signature production postal code.
◆ profile()
digidoc::Signature::profile |
( |
| ) |
const |
|
pure virtual |
◆ setSignatureValue()
digidoc::Signature::setSignatureValue |
( |
const std::vector< unsigned char > & |
signatureValue | ) |
|
|
pure virtual |
Signed digest will be added to SignatureValue element
- See also
- dataToSign
◆ signatureMethod()
digidoc::Signature::signatureMethod |
( |
| ) |
const |
|
pure virtual |
Returns signature method that was used for signing.
◆ signedBy()
string Signature::signedBy |
( |
| ) |
const |
|
virtual |
◆ signerRoles()
vector< string > Signature::signerRoles |
( |
| ) |
const |
|
virtual |
◆ signingCertificate()
digidoc::Signature::signingCertificate |
( |
| ) |
const |
|
pure virtual |
Returns signature certificate that was used for signing.
Referenced by signedBy().
◆ SPUri()
string Signature::SPUri |
( |
| ) |
const |
|
virtual |
Returns signature policy uri when it is available or empty string.
◆ stateOrProvince()
string Signature::stateOrProvince |
( |
| ) |
const |
|
virtual |
Returns signature production state or province.
◆ streetAddress()
string Signature::streetAddress |
( |
| ) |
const |
|
virtual |
Returns signature production street address.
◆ TimeStampCertificate()
X509Cert Signature::TimeStampCertificate |
( |
| ) |
const |
|
virtual |
Returns signature TimeStampToken certificate.
◆ TimeStampTime()
string Signature::TimeStampTime |
( |
| ) |
const |
|
virtual |
Returns signature TimeStampToken time.
◆ trustedSigningTime()
digidoc::Signature::trustedSigningTime |
( |
| ) |
const |
|
pure virtual |
Time value that is regarded as trusted signing time, denoting the earliest time when it can be trusted by the validation application (because proven by some Proof-of-Existence present in the signature) that a signature has existed.
◆ validate() [1/2]
digidoc::Signature::validate |
( |
| ) |
const |
|
pure virtual |
◆ validate() [2/2]
void Signature::validate |
( |
const std::string & |
policy | ) |
const |
|
virtual |
◆ POLv1
const string Signature::POLv1 = "POLv1" |
|
static |
◆ POLv2
const string Signature::POLv2 = "POLv2" |
|
static |
The documentation for this class was generated from the following files:
- Signature.h
- Signature.cpp