#include <Policy.h>
Inheritance diagram for CODEX_Ciphers::Policy:


Public Methods | |
| Policy () | |
| Default constructor, for creating an object to be unmarshalled. | |
| Policy (const Policy &aPol) | |
| Create Policy from other Policy. | |
| virtual | ~Policy () |
| Virtual destructor. | |
| void | operator= (const Policy &aPol) |
| Assignment operator. | |
| bool | verify (const Credentials &credentials) const |
| Verify that a Credentials object satisfies the policy. | |
| int | marshal (unsigned char **pp) const |
| This function creates a serialized representation of the object, which is returned through the argument pp. | |
| void * | unmarshal (void *bogus, unsigned char **pp, long length) |
| This function takes a serialized representation of the object and recreates the object representation. | |
The current version of this class is a trivial acceptance of any Credentials. It is designed to provide an interface for a mechanism such as SDSI or KeyNote.
Definition at line 38 of file Policy.h.
|
|
This function creates a serialized representation of the object, which is returned through the argument pp. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 60 of file Policy.cc. Referenced by CODEX_Client::Interface::codex_create_policy(), and CODEX_Client::CreateKeyMsg::marshal(). |
|
||||||||||||||||
|
This function takes a serialized representation of the object and recreates the object representation. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 66 of file Policy.cc. References CODEX_ASN1::Base::m_initialized. Referenced by CODEX_Client::Interface::codex_create_key(), CODEX_Client::Client::createPolicy(), and CODEX_Client::CreateKeyMsg::unmarshal(). |
|
|
Verify that a Credentials object satisfies the policy.
Definition at line 54 of file Policy.cc. Referenced by CODEX_KeyService::ClientMessageVerifier::handler(). |
1.2.18