xmltooling  1.5.6
xmltooling::KeyInfoResolver Class Referenceabstract

Resolves credentials from KeyInfo information. More...

#include <xmltooling/security/KeyInfoResolver.h>

Public Member Functions

virtual Credentialresolve (const xmlsignature::KeyInfo *keyInfo, int types=0) const =0
 Returns a credential based on the supplied KeyInfo information. More...
 
virtual Credentialresolve (DSIGKeyInfoList *keyInfo, int types=0) const =0
 Returns a credential based on the supplied KeyInfo information. More...
 
virtual Credentialresolve (KeyInfoCredentialContext *context, int types=0) const =0
 Returns a credential based on the KeyInfo information in the supplied context. More...
 
Credentialresolve (const xmlsignature::Signature *sig, int types=0) const
 Returns a credential based on the supplied KeyInfo information. More...
 
Credentialresolve (const CredentialCriteria &criteria, int types=0) const
 Returns a credential based on the KeyInfo information in the supplied criteria. More...
 

Detailed Description

Resolves credentials from KeyInfo information.

Credential-specific bitmasks can be provided to control what to resolve.

Implementations should only establish KeyNames on the basis of explicit names within the KeyInfo object, never by extracting names out of physical credentials found within it.

Member Function Documentation

virtual Credential* xmltooling::KeyInfoResolver::resolve ( const xmlsignature::KeyInfo *  keyInfo,
int  types = 0 
) const
pure virtual

Returns a credential based on the supplied KeyInfo information.

The caller must release the credential when done with it.

Parameters
keyInfothe key information
typestypes of credentials to resolve, or 0 for any/all
Returns
the resolved credential, or nullptr
virtual Credential* xmltooling::KeyInfoResolver::resolve ( DSIGKeyInfoList *  keyInfo,
int  types = 0 
) const
pure virtual

Returns a credential based on the supplied KeyInfo information.

The caller must release the credential when done with it.

Parameters
keyInfothe key information
typestypes of credentials to resolve, or 0 for any/all
Returns
the resolved credential, or nullptr
virtual Credential* xmltooling::KeyInfoResolver::resolve ( KeyInfoCredentialContext context,
int  types = 0 
) const
pure virtual

Returns a credential based on the KeyInfo information in the supplied context.

The caller must release the credential when done with it.

The context object will be owned by the Credential and freed with it.

Parameters
contextcontext containing the key information
typestypes of credentials to resolve, or 0 for any/all
Returns
the resolved credential, or nullptr
Credential* xmltooling::KeyInfoResolver::resolve ( const xmlsignature::Signature sig,
int  types = 0 
) const

Returns a credential based on the supplied KeyInfo information.

The caller must release the credential when done with it.

Parameters
sigsignature containing the key information
typestypes of credentials to resolve, or 0 for any/all
Returns
the resolved credential, or nullptr
Credential* xmltooling::KeyInfoResolver::resolve ( const CredentialCriteria criteria,
int  types = 0 
) const

Returns a credential based on the KeyInfo information in the supplied criteria.

The caller must release the credential when done with it.

Parameters
criteriacriteria containing the key information
typestypes of credentials to resolve, or 0 for any/all
Returns
the resolved credential, or nullptr

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