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 |
This interface is currently very minimal, but will expand.
static TrustManager org.ccnx.ccn.TrustManager.getDefaultTrustManager | ( | ) | [static] |
Returns the default singleton instance of a TrustManager.
static TrustManager org.ccnx.ccn.TrustManager.getTrustManager | ( | ) | [static] |
Get the current trust manager.
Currently defers to getDefaultTrustManager().
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.
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. |
Implemented in org.ccnx.ccn.impl.security.keys.BasicTrustManager.