xmltooling  3.3.0
xmlsignature::SignatureValidator Class Reference

Validator for signatures based on a Credential. More...

#include <xmltooling/signature/SignatureValidator.h>

Inheritance diagram for xmlsignature::SignatureValidator:
xmltooling::Validator

Public Member Functions

 SignatureValidator (XSECCryptoKey *key=0)
 Constructor using a key. More...
 
 SignatureValidator (const xmltooling::Credential *credential)
 Constructor using a Credential. More...
 
void validate (const xmltooling::XMLObject *xmlObject) const
 Checks to see if an XMLObject is valid. More...
 
virtual void validate (const Signature *signature) const
 Type-safe validator. More...
 
void setKey (XSECCryptoKey *key)
 Replace the current key, if any, with a new one. More...
 
void setCredential (const xmltooling::Credential *credential)
 Replace the current Credential, if any, with a new one. More...
 

Protected Attributes

XSECCryptoKey * m_key
 Verification key. More...
 
const xmltooling::Credentialm_credential
 Verification credential. More...
 

Detailed Description

Validator for signatures based on a Credential.

Constructor & Destructor Documentation

◆ SignatureValidator() [1/2]

xmlsignature::SignatureValidator::SignatureValidator ( XSECCryptoKey *  key = 0)

Constructor using a key.

Parameters
keythe key to use

◆ SignatureValidator() [2/2]

xmlsignature::SignatureValidator::SignatureValidator ( const xmltooling::Credential credential)

Constructor using a Credential.

Parameters
credentialthe credential to use

Member Function Documentation

◆ setCredential()

void xmlsignature::SignatureValidator::setCredential ( const xmltooling::Credential credential)

Replace the current Credential, if any, with a new one.

Parameters
credentialthe Credential to attach

◆ setKey()

void xmlsignature::SignatureValidator::setKey ( XSECCryptoKey *  key)

Replace the current key, if any, with a new one.

Parameters
keythe key to attach

◆ validate() [1/2]

void xmlsignature::SignatureValidator::validate ( const xmltooling::XMLObject xmlObject) const
virtual

Checks to see if an XMLObject is valid.

Parameters
xmlObjectthe XMLObject to validate
Exceptions
ValidationExceptionthrown if the element is not valid

Implements xmltooling::Validator.

◆ validate() [2/2]

virtual void xmlsignature::SignatureValidator::validate ( const Signature signature) const
virtual

Type-safe validator.

Parameters
signatureobject to validate

Member Data Documentation

◆ m_credential

const xmltooling::Credential* xmlsignature::SignatureValidator::m_credential
protected

Verification credential.

◆ m_key

XSECCryptoKey* xmlsignature::SignatureValidator::m_key
protected

Verification key.


The documentation for this class was generated from the following file: