Digital Authentication Framework 6.0.1.33
|
General metadata interface. More...
#include <DigitalAuthenticationFramework.h>
Public Member Functions | |
virtual | ~DAMetaData () |
Virtual Destructor. | |
virtual bool | getString (DAAttrib which, std::string &data)=0 |
Get String attribute. | |
virtual bool | getFlag (DAAttrib which)=0 |
Get boolean attribute. | |
virtual bool | getData (DAAttrib which, DAData &data, size_t index=0)=0 |
Get byteblock attribute. | |
virtual bool | getSize (DAAttrib which, size_t &len_r)=0 |
Get size attribute. |
General metadata interface.
All objects which can have attributes (see DAAttrib) provide an implementation of the DAMetaData interface (generally returned by that object's getInfo() method).
virtual DAMetaData::~DAMetaData | ( | ) | [inline, virtual] |
Virtual Destructor.
Get byteblock attribute.
For DA_CERTIFICATE attributes, index is set to 0 to return the X.509 certificate for the key. If additional certificates are required to validate this, these should be provided for index=1, index=2, and so on. The caller can discover the certificate chain by enumerating successive index values, until the method returns false.
Implemented in BasicMetaData.
virtual bool DAMetaData::getFlag | ( | DAAttrib | which | ) | [pure virtual] |
Get boolean attribute.
which | identifies the flag value to query |
Queries whether a particular flag is set. Note that there is no semantic difference between a flag being 'not set' and the flag attribute being 'not present'.
Implemented in BasicMetaData.
virtual bool DAMetaData::getSize | ( | DAAttrib | which, |
size_t & | len_r | ||
) | [pure virtual] |
Get size attribute.
Used with DA_SIGNATURE_SIZE and DA_MAX_DECRYPT_SIZE attributes to return the sizes (in bytes) of signatures and decrypted data, respectively. Keys with DA_SMIME_SIGN or DA_TLS_CLIENT_AUTH flags set must also have a DA_SIGNATURE_SIZE attribute. Keys with DA_SMIME_DECRYPT must have DA_MAX_DECRYPT_SIZE.
Implemented in BasicMetaData.
virtual bool DAMetaData::getString | ( | DAAttrib | which, |
std::string & | data | ||
) | [pure virtual] |
Get String attribute.
which | Identifies the attribute to get |
data | On return, set to the value of the requested attribute. |
Implemented in BasicMetaData.