Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XSECURIResolver Class Reference
[Main Signature API]

#include <XSECURIResolver.hpp>

Inheritance diagram for XSECURIResolver:

Inheritance graph
[legend]
List of all members.

Detailed Description

Interface class for resolving URIs.

The XML Digital Signature standard makes heavy use of URIs to identify information to be referenced and signed.

The library internally handles reference URIs within the document that contains the signature, but uses URIResolver classes to dereference a URI into a byte stream that can then be processed.

The interface class allows others to re-implement and install their own resolves according to their needs. The basic implementations found in the library are just that - very basic. Enough to do the job for interoperability testing, but not enough to provide robustness in a major application.


Public Member Functions

Constructors and Destructors
 XSECURIResolver ()
virtual ~XSECURIResolver ()
Interface Methods
virtual XERCES_CPP_NAMESPACE_QUALIFIER
BinInputStream * 
resolveURI (const XMLCh *uri)=0
 Create a BYTE_STREAM from a URI.
virtual XSECURIResolverclone (void)=0
 Clone the resolver to be installed in a new object.


Constructor & Destructor Documentation

XSECURIResolver::XSECURIResolver  )  [inline]
 

virtual XSECURIResolver::~XSECURIResolver  )  [inline, virtual]
 


Member Function Documentation

virtual XSECURIResolver* XSECURIResolver::clone void   )  [pure virtual]
 

Clone the resolver to be installed in a new object.

When URIResolvers are passed into signatures and other objects, they are cloned and control of the original object is left with the caller.

Implemented in XSECURIResolverXerces, XSECURIResolverGenericUnix, and XSECURIResolverGenericWin32.

virtual XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream* XSECURIResolver::resolveURI const XMLCh *  uri  )  [pure virtual]
 

Create a BYTE_STREAM from a URI.

The resolver is required to take the input URI and dereference it to an actual stream of octets.

The octets are provided back to the library using the Xerces BinInputStream class.

Note:
The returned stream is "owned" by the caller, which will delete it when processing is complete.
Parameters:
uri The string containing the URI to be de-referenced. NULL if this is an anonymous reference.
Returns:
The octet stream corresponding to the URI.

Implemented in XSECURIResolverXerces, XSECURIResolverGenericUnix, and XSECURIResolverGenericWin32.


The documentation for this class was generated from the following file:
Generated on Sun Jul 3 17:46:01 2005 for XML-Security-C by  doxygen 1.4.2