| Top |  |  |  |  | 
| xmlSecKeysMngrPtr | xmlSecKeysMngrCreate () | 
| void | xmlSecKeysMngrDestroy () | 
| xmlSecKeyPtr | xmlSecKeysMngrFindKey () | 
| int | xmlSecKeysMngrAdoptKeysStore () | 
| xmlSecKeyStorePtr | xmlSecKeysMngrGetKeysStore () | 
| int | xmlSecKeysMngrAdoptDataStore () | 
| xmlSecKeyDataStorePtr | xmlSecKeysMngrGetDataStore () | 
| xmlSecKeyPtr | (*xmlSecGetKeyCallback) () | 
| xmlSecKeyPtr | xmlSecKeysMngrGetKey () | 
| xmlSecKeyStorePtr | xmlSecKeyStoreCreate () | 
| void | xmlSecKeyStoreDestroy () | 
| xmlSecKeyPtr | xmlSecKeyStoreFindKey () | 
| #define | xmlSecKeyStoreGetName() | 
| #define | xmlSecKeyStoreIsValid() | 
| #define | xmlSecKeyStoreCheckId() | 
| #define | xmlSecKeyStoreCheckSize() | 
| int | (*xmlSecKeyStoreInitializeMethod) () | 
| void | (*xmlSecKeyStoreFinalizeMethod) () | 
| xmlSecKeyPtr | (*xmlSecKeyStoreFindKeyMethod) () | 
| #define | xmlSecKeyStoreKlassGetName() | 
| xmlSecKeyStoreId | xmlSecSimpleKeysStoreGetKlass () | 
| int | xmlSecSimpleKeysStoreAdoptKey () | 
| int | xmlSecSimpleKeysStoreLoad () | 
| int | xmlSecSimpleKeysStoreSave () | 
| xmlSecPtrListPtr | xmlSecSimpleKeysStoreGetKeys () | 
| struct | xmlSecKeysMngr | 
| struct | xmlSecKeyStore | 
| #define | xmlSecKeyStoreIdUnknown | 
| struct | xmlSecKeyStoreKlass | 
| #define | xmlSecSimpleKeysStoreId | 
xmlSecKeysMngrPtr
xmlSecKeysMngrCreate (void);
Creates new keys manager. Caller is responsible for freeing it with xmlSecKeysMngrDestroy function.
void
xmlSecKeysMngrDestroy (xmlSecKeysMngrPtr mngr);
Destroys keys manager created with xmlSecKeysMngrCreate function.
xmlSecKeyPtr xmlSecKeysMngrFindKey (xmlSecKeysMngrPtr mngr,const xmlChar *name,xmlSecKeyInfoCtxPtr keyInfoCtx);
Lookups key in the keys manager keys store. The caller is responsible for destroying the returned key using xmlSecKeyDestroy method.
| mngr | the pointer to keys manager. | |
| name | the desired key name. | |
| keyInfoCtx | the pointer to <dsig:KeyInfo/> node processing context. | 
int xmlSecKeysMngrAdoptKeysStore (xmlSecKeysMngrPtr mngr,xmlSecKeyStorePtr store);
Adopts keys store in the keys manager mngr
.
xmlSecKeyStorePtr
xmlSecKeysMngrGetKeysStore (xmlSecKeysMngrPtr mngr);
Gets the keys store.
int xmlSecKeysMngrAdoptDataStore (xmlSecKeysMngrPtr mngr,xmlSecKeyDataStorePtr store);
Adopts data store in the keys manager.
xmlSecKeyDataStorePtr xmlSecKeysMngrGetDataStore (xmlSecKeysMngrPtr mngr,xmlSecKeyDataStoreId id);
Lookups the data store of given klass id
 in the keys manager.
xmlSecKeyPtr (*xmlSecGetKeyCallback) (xmlNodePtr keyInfoNode,xmlSecKeyInfoCtxPtr keyInfoCtx);
Reads the <dsig:KeyInfo/> node keyInfoNode
 and extracts the key.
| keyInfoNode | the pointer to <dsig:KeyInfo/> node. | |
| keyInfoCtx | the pointer to <dsig:KeyInfo/> node processing context. | 
xmlSecKeyPtr xmlSecKeysMngrGetKey (xmlNodePtr keyInfoNode,xmlSecKeyInfoCtxPtr keyInfoCtx);
Reads the <dsig:KeyInfo/> node keyInfoNode
 and extracts the key.
| keyInfoNode | the pointer to <dsig:KeyInfo/> node. | |
| keyInfoCtx | the pointer to <dsig:KeyInfo/> node processing context. | 
xmlSecKeyStorePtr
xmlSecKeyStoreCreate (xmlSecKeyStoreId id);
Creates new store of the specified klass klass
. Caller is responsible
for freeing the returned store by calling xmlSecKeyStoreDestroy function.
void
xmlSecKeyStoreDestroy (xmlSecKeyStorePtr store);
Destroys the store created with xmlSecKeyStoreCreate function.
xmlSecKeyPtr xmlSecKeyStoreFindKey (xmlSecKeyStorePtr store,const xmlChar *name,xmlSecKeyInfoCtxPtr keyInfoCtx);
Lookups key in the store. The caller is responsible for destroying the returned key using xmlSecKeyDestroy method.
| store | the pointer to keys store. | |
| name | the desired key name. | |
| keyInfoCtx | the pointer to <dsig:KeyInfo/> node processing context. | 
#define xmlSecKeyStoreIsValid(store)
Macro. Returns 1 if store
 is not NULL and store->id
 is not NULL
or 0 otherwise.
#define xmlSecKeyStoreCheckId(store, storeId)
Macro. Returns 1 if store
 is valid and store
's id is equal to storeId
.
#define xmlSecKeyStoreCheckSize(store, size)
Macro. Returns 1 if store
 is valid and stores
's object has at least size
 bytes.
int
(*xmlSecKeyStoreInitializeMethod) (xmlSecKeyStorePtr store);
Keys store specific initialization method.
void
(*xmlSecKeyStoreFinalizeMethod) (xmlSecKeyStorePtr store);
Keys store specific finalization (destroy) method.
xmlSecKeyPtr (*xmlSecKeyStoreFindKeyMethod) (xmlSecKeyStorePtr store,const xmlChar *name,xmlSecKeyInfoCtxPtr keyInfoCtx);
Keys store specific find method. The caller is responsible for destroying the returned key using xmlSecKeyDestroy method.
#define xmlSecKeyStoreKlassGetName(klass)
Macro. Returns store klass name.
xmlSecKeyStoreId
xmlSecSimpleKeysStoreGetKlass (void);
The simple list based keys store klass.
int xmlSecSimpleKeysStoreAdoptKey (xmlSecKeyStorePtr store,xmlSecKeyPtr key);
Adds key
 to the store
.
int xmlSecSimpleKeysStoreLoad (xmlSecKeyStorePtr store,const char *uri,xmlSecKeysMngrPtr keysMngr);
Reads keys from an XML file.
int xmlSecSimpleKeysStoreSave (xmlSecKeyStorePtr store,const char *filename,xmlSecKeyDataType type);
Writes keys from store
 to an XML file.
xmlSecPtrListPtr
xmlSecSimpleKeysStoreGetKeys (xmlSecKeyStorePtr store);
Gets list of keys from simple keys store.
struct xmlSecKeysMngr {
    xmlSecKeyStorePtr           keysStore;
    xmlSecPtrList               storesList;
    xmlSecGetKeyCallback        getKey;
};
The keys manager structure.
| xmlSecKeyStorePtr  | the key store (list of keys known to keys manager). | |
| xmlSecPtrList  | the list of key data stores known to keys manager. | |
| xmlSecGetKeyCallback  | the callback used to read <dsig:KeyInfo/> node. | 
struct xmlSecKeyStore {
    xmlSecKeyStoreId                    id;
    /* for the future */
    void*                               reserved0;
    void*                               reserved1;
};
The keys store.
#define xmlSecKeyStoreIdUnknown ((xmlSecKeyDataStoreId)NULL)
The "unknown" id.
struct xmlSecKeyStoreKlass {
    xmlSecSize                          klassSize;
    xmlSecSize                          objSize;
    /* data */
    const xmlChar*                      name;
    /* constructors/destructor */
    xmlSecKeyStoreInitializeMethod      initialize;
    xmlSecKeyStoreFinalizeMethod        finalize;
    xmlSecKeyStoreFindKeyMethod         findKey;
    /* for the future */
    void*                               reserved0;
    void*                               reserved1;
};
The keys store id (klass).
| xmlSecSize  | the store klass size. | |
| xmlSecSize  | the store obj size. | |
| the store's name. | ||
| xmlSecKeyStoreInitializeMethod  | the store's initialization method. | |
| xmlSecKeyStoreFinalizeMethod  | the store's finalization (destroy) method. | |
| xmlSecKeyStoreFindKeyMethod  | the store's find method. | |
| reserved for the future. | ||
| reserved for the future. |