org.ccnx.ccn.protocol.ContentObject.SimpleVerifier Class Reference

We don't specify a required publisher, and right now we don't enforce that publisherID is the digest of the key used to sign (which could actually be handy to preserve privacy); we just use the key locator and publisherID combined to look up keys in caches (though for right now we only put keys in caches by straight digest; would have to offer option to put keys in caches using some privacy-preserving function as well. More...

Inheritance diagram for org.ccnx.ccn.protocol.ContentObject.SimpleVerifier:

org.ccnx.ccn.ContentVerifier

List of all members.

Public Member Functions

 SimpleVerifier (PublisherPublicKeyDigest requiredPublisher)
 SimpleVerifier (PublisherPublicKeyDigest publisher, KeyManager keyManager)
boolean verify (ContentObject object)
 Verify this content object, potentially in the context of other data held by the verifier.

Static Public Member Functions

static ContentVerifier getDefaultVerifier ()

Static Public Attributes

static SimpleVerifier _defaultVerifier = null

Package Attributes

PublisherPublicKeyDigest _requiredPublisher
KeyManager _keyManager


Detailed Description

We don't specify a required publisher, and right now we don't enforce that publisherID is the digest of the key used to sign (which could actually be handy to preserve privacy); we just use the key locator and publisherID combined to look up keys in caches (though for right now we only put keys in caches by straight digest; would have to offer option to put keys in caches using some privacy-preserving function as well.

TODO evaluate when the gap between checking verifier and checking publisherID matters. Probably does; could have bogus publisherID, and then real key locator and content that uses key locator would then verify content and user might rely on publisher ID. Make that an option, though, even if it costs more time to check.


Member Function Documentation

boolean org.ccnx.ccn.protocol.ContentObject.SimpleVerifier.verify ( ContentObject  content  ) 

Verify this content object, potentially in the context of other data held by the verifier.

This may be a simple signature verification, which might take advantage of cached data, or a more complex trust calculation determining the acceptability of this content for a particular use.

Parameters:
content the object whose signature we should verify.
Returns:

Implements org.ccnx.ccn.ContentVerifier.


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

Generated on Thu Feb 16 00:45:07 2012 for Content-Centric Networking in Java by  doxygen 1.5.6