xmltooling::KeyInfoResolver Class Reference

Resolves credentials from KeyInfo information. More...

#include <xmltooling/security/KeyInfoResolver.h>

List of all members.

Public Member Functions

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


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

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:
criteria criteria containing the key information
types types of credentials to resolve, or 0 for any/all
Returns:
the resolved credential, or NULL

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:
sig signature containing the key information
types types of credentials to resolve, or 0 for any/all
Returns:
the resolved credential, or NULL

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:
context context containing the key information
types types of credentials to resolve, or 0 for any/all
Returns:
the resolved credential, or NULL

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:
keyInfo the key information
types types of credentials to resolve, or 0 for any/all
Returns:
the resolved credential, or NULL

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:
keyInfo the key information
types types of credentials to resolve, or 0 for any/all
Returns:
the resolved credential, or NULL


The documentation for this class was generated from the following file:
Generated on Mon Oct 19 14:18:34 2009 for xmltooling by  doxygen 1.4.7