Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

XSECURIResolver Class Reference
[Main Signature API]

Interface class for resolving URIs. More...

#include <XSECURIResolver.hpp>

Inheritance diagram for XSECURIResolver:

Inheritance graph
[legend]
List of all members.

Public Methods

Constructors and Destructors
 XSECURIResolver ()
virtual ~XSECURIResolver ()
Interface Methods
virtual BinInputStream * resolveURI (const char *uri)=0
 Create a BYTE_STREAM from a URI. More...

virtual XSECURIResolver * clone (void)=0
 Clone the resolver to be installed in a new object. More...


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.


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.

virtual BinInputStream* XSECURIResolver::resolveURI const char *    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.
Returns:
The octet stream corresponding to the URI.

Implemented in XSECURIResolverXerces.


The documentation for this class was generated from the following file:
Generated on Sat Jan 11 20:35:32 2003 for XML-Security-C by doxygen1.2.15