org.ccnx.ccn.TrustManager Class Reference

Basic interface to trust management -- determination of whether a piece of content is acceptable to a given consumer for a particular use in a particular content. More...

Inheritance diagram for org.ccnx.ccn.TrustManager:

org.ccnx.ccn.impl.security.keys.BasicTrustManager

List of all members.

Public Member Functions

abstract boolean matchesRole (PublisherID desiredRole, PublisherPublicKeyDigest thisKey)
 The start of an API to do the calculation of whether a given public key matches a desired role (subject or issuer) as specified by a PublisherID.

Static Public Member Functions

static TrustManager getDefaultTrustManager ()
 Returns the default singleton instance of a TrustManager.
static TrustManager getTrustManager ()
 Get the current trust manager.

Static Protected Attributes

static TrustManager _defaultTrustManager = null


Detailed Description

Basic interface to trust management -- determination of whether a piece of content is acceptable to a given consumer for a particular use in a particular content.

This interface is currently very minimal, but will expand.


Member Function Documentation

static TrustManager org.ccnx.ccn.TrustManager.getDefaultTrustManager (  )  [static]

Returns the default singleton instance of a TrustManager.

Returns:
the default singleton TrustManager instance

static TrustManager org.ccnx.ccn.TrustManager.getTrustManager (  )  [static]

Get the current trust manager.

Currently defers to getDefaultTrustManager().

Returns:
the current trust manager

abstract boolean org.ccnx.ccn.TrustManager.matchesRole ( PublisherID  desiredRole,
PublisherPublicKeyDigest  thisKey 
) [pure virtual]

The start of an API to do the calculation of whether a given public key matches a desired role (subject or issuer) as specified by a PublisherID.

Parameters:
desiredRole the desired role; either a specific key, or a key certified by another, specific key, and so on. Currently exploring the range of roles that are both useful and can be supported efficiently. Current production implementation only handles referring to specific keys.
thisKey the key whose role we need to determine.
Returns:
true if thisKey matches desiredRole, false otherwise.

Implemented in org.ccnx.ccn.impl.security.keys.BasicTrustManager.


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

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