

|
templates
Synopsis
xmlNodePtr xmlSecTmplSignatureCreate (xmlDocPtr doc,
xmlSecTransformId c14nMethodId,
xmlSecTransformId signMethodId,
const xmlChar *id);
xmlNodePtr xmlSecTmplSignatureEnsureKeyInfo
(xmlNodePtr signNode,
const xmlChar *id);
xmlNodePtr xmlSecTmplSignatureAddReference (xmlNodePtr signNode,
xmlSecTransformId digestMethodId,
const xmlChar *id,
const xmlChar *uri,
const xmlChar *type);
xmlNodePtr xmlSecTmplSignatureAddObject (xmlNodePtr signNode,
const xmlChar *id,
const xmlChar *mimeType,
const xmlChar *encoding);
xmlNodePtr xmlSecTmplSignatureGetSignMethodNode
(xmlNodePtr signNode);
xmlNodePtr xmlSecTmplSignatureGetC14NMethodNode
(xmlNodePtr signNode);
xmlNodePtr xmlSecTmplReferenceAddTransform (xmlNodePtr referenceNode,
xmlSecTransformId transformId);
xmlNodePtr xmlSecTmplObjectAddSignProperties
(xmlNodePtr objectNode,
const xmlChar *id,
const xmlChar *target);
xmlNodePtr xmlSecTmplObjectAddManifest (xmlNodePtr objectNode,
const xmlChar *id);
xmlNodePtr xmlSecTmplManifestAddReference (xmlNodePtr manifestNode,
xmlSecTransformId digestMethodId,
const xmlChar *id,
const xmlChar *uri,
const xmlChar *type);
xmlNodePtr xmlSecTmplEncDataCreate (xmlDocPtr doc,
xmlSecTransformId encMethodId,
const xmlChar *id,
const xmlChar *type,
const xmlChar *mimeType,
const xmlChar *encoding);
xmlNodePtr xmlSecTmplEncDataEnsureKeyInfo (xmlNodePtr encNode,
const xmlChar *id);
xmlNodePtr xmlSecTmplEncDataEnsureEncProperties
(xmlNodePtr encNode,
const xmlChar *id);
xmlNodePtr xmlSecTmplEncDataAddEncProperty (xmlNodePtr encNode,
const xmlChar *id,
const xmlChar *target);
xmlNodePtr xmlSecTmplEncDataEnsureCipherValue
(xmlNodePtr encNode);
xmlNodePtr xmlSecTmplEncDataEnsureCipherReference
(xmlNodePtr encNode,
const xmlChar *uri);
xmlNodePtr xmlSecTmplEncDataGetEncMethodNode
(xmlNodePtr encNode);
xmlNodePtr xmlSecTmplCipherReferenceAddTransform
(xmlNodePtr cipherReferenceNode,
xmlSecTransformId transformId);
xmlNodePtr xmlSecTmplKeyInfoAddKeyName (xmlNodePtr keyInfoNode,
const xmlChar *name);
xmlNodePtr xmlSecTmplKeyInfoAddKeyValue (xmlNodePtr keyInfoNode);
xmlNodePtr xmlSecTmplKeyInfoAddX509Data (xmlNodePtr keyInfoNode);
xmlNodePtr xmlSecTmplKeyInfoAddRetrievalMethod
(xmlNodePtr keyInfoNode,
const xmlChar *uri,
const xmlChar *type);
xmlNodePtr xmlSecTmplRetrievalMethodAddTransform
(xmlNodePtr retrMethodNode,
xmlSecTransformId transformId);
xmlNodePtr xmlSecTmplKeyInfoAddEncryptedKey
(xmlNodePtr keyInfoNode,
xmlSecTransformId encMethodId,
const xmlChar *id,
const xmlChar *type,
const xmlChar *recipient);
int xmlSecTmplTransformAddHmacOutputLength
(xmlNodePtr transformNode,
size_t bitsLen);
int xmlSecTmplTransformAddRsaOaepParam
(xmlNodePtr transformNode,
unsigned char *buf,
size_t size);
int xmlSecTmplTransformAddXsltStylesheet
(xmlNodePtr transformNode,
const xmlChar *xslt);
int xmlSecTmplTransformAddC14NInclNamespaces
(xmlNodePtr transformNode,
const xmlChar *prefixList);
int xmlSecTmplTransformAddXPath (xmlNodePtr transformNode,
const xmlChar *expression,
const xmlChar **nsList);
int xmlSecTmplTransformAddXPath2 (xmlNodePtr transformNode,
const xmlChar *type,
const xmlChar *expression,
const xmlChar **nsList);
int xmlSecTmplTransformAddXPointer (xmlNodePtr transformNode,
const xmlChar *expression,
const xmlChar **nsList); |
Details
xmlSecTmplSignatureCreate ()
xmlNodePtr xmlSecTmplSignatureCreate (xmlDocPtr doc,
xmlSecTransformId c14nMethodId,
xmlSecTransformId signMethodId,
const xmlChar *id); |
Creates new <dsig:Signature/> node with the mandatory <dsig:SignedInfo/>,
<dsig:CanonicalizationMethod/>, <dsig:SignatureMethod/> and
<dsig:SignatureValue/> children and sub-children.
The application is responsible for inserting the returned node
in the XML document.
xmlSecTmplSignatureEnsureKeyInfo ()
xmlNodePtr xmlSecTmplSignatureEnsureKeyInfo
(xmlNodePtr signNode,
const xmlChar *id); |
Adds (if necessary) <dsig:KeyInfo/> node to the <dsig:Signature/>
node signNode.
xmlSecTmplSignatureAddReference ()
xmlNodePtr xmlSecTmplSignatureAddReference (xmlNodePtr signNode,
xmlSecTransformId digestMethodId,
const xmlChar *id,
const xmlChar *uri,
const xmlChar *type); |
Adds <dsig:Reference/> node with given URI (uri), Id (id) and
Type (type) attributes and the required children <dsig:DigestMethod/> and
<dsig:DigestValue/> to the <dsig:SignedInfo/> child of signNode.
xmlSecTmplSignatureAddObject ()
xmlNodePtr xmlSecTmplSignatureAddObject (xmlNodePtr signNode,
const xmlChar *id,
const xmlChar *mimeType,
const xmlChar *encoding); |
Adds <dsig:Object/> node to the <dsig:Signature/> node signNode.
xmlSecTmplSignatureGetSignMethodNode ()
xmlNodePtr xmlSecTmplSignatureGetSignMethodNode
(xmlNodePtr signNode); |
Gets pointer to <dsig:SignatureMethod/> child of <dsig:KeyInfo/> node.
xmlSecTmplSignatureGetC14NMethodNode ()
xmlNodePtr xmlSecTmplSignatureGetC14NMethodNode
(xmlNodePtr signNode); |
Gets pointer to <dsig:CanonicalizationMethod/> child of <dsig:KeyInfo/> node.
xmlSecTmplReferenceAddTransform ()
xmlNodePtr xmlSecTmplReferenceAddTransform (xmlNodePtr referenceNode,
xmlSecTransformId transformId); |
Adds <dsig:Transform/> node to the <dsig:Reference/> node referenceNode.
xmlSecTmplObjectAddSignProperties ()
xmlNodePtr xmlSecTmplObjectAddSignProperties
(xmlNodePtr objectNode,
const xmlChar *id,
const xmlChar *target); |
Adds <dsig:SignatureProperties/> node to the <dsig:Object/> node objectNode.
xmlSecTmplObjectAddManifest ()
xmlNodePtr xmlSecTmplObjectAddManifest (xmlNodePtr objectNode,
const xmlChar *id); |
Adds <dsig:Manifest/> node to the <dsig:Object/> node objectNode.
xmlSecTmplManifestAddReference ()
xmlNodePtr xmlSecTmplManifestAddReference (xmlNodePtr manifestNode,
xmlSecTransformId digestMethodId,
const xmlChar *id,
const xmlChar *uri,
const xmlChar *type); |
Adds <dsig:Reference/> node with specified URI (uri), Id (id) and
Type (type) attributes and the required children <dsig:DigestMethod/> and
<dsig:DigestValue/> to the <dsig:Manifest/> node manifestNode.
xmlSecTmplEncDataCreate ()
xmlNodePtr xmlSecTmplEncDataCreate (xmlDocPtr doc,
xmlSecTransformId encMethodId,
const xmlChar *id,
const xmlChar *type,
const xmlChar *mimeType,
const xmlChar *encoding); |
Creates new <enc:EncryptedData /> node for encryption template.
xmlSecTmplEncDataEnsureKeyInfo ()
xmlNodePtr xmlSecTmplEncDataEnsureKeyInfo (xmlNodePtr encNode,
const xmlChar *id); |
Adds <dsig:KeyInfo/> to the <enc:EncryptedData/> node encNode.
xmlSecTmplEncDataEnsureEncProperties ()
xmlNodePtr xmlSecTmplEncDataEnsureEncProperties
(xmlNodePtr encNode,
const xmlChar *id); |
Adds <enc:EncryptionProperties/> node to the <enc:EncryptedData/>
node encNode.
xmlSecTmplEncDataAddEncProperty ()
xmlNodePtr xmlSecTmplEncDataAddEncProperty (xmlNodePtr encNode,
const xmlChar *id,
const xmlChar *target); |
Adds <enc:EncryptionProperty/> node (and the parent
<enc:EncryptionProperties/> node if required) to the
<enc:EncryptedData/> node encNode.
xmlSecTmplEncDataEnsureCipherValue ()
xmlNodePtr xmlSecTmplEncDataEnsureCipherValue
(xmlNodePtr encNode); |
Adds <enc:CipherValue/> to the <enc:EncryptedData/> node encNode.
xmlSecTmplEncDataEnsureCipherReference ()
xmlNodePtr xmlSecTmplEncDataEnsureCipherReference
(xmlNodePtr encNode,
const xmlChar *uri); |
Adds <enc:CipherReference/> node with specified URI attribute uri
to the <enc:EncryptedData/> node encNode.
xmlSecTmplEncDataGetEncMethodNode ()
xmlNodePtr xmlSecTmplEncDataGetEncMethodNode
(xmlNodePtr encNode); |
Gets pointer to <enc:EncrytpionMethod/> node.
xmlSecTmplCipherReferenceAddTransform ()
xmlNodePtr xmlSecTmplCipherReferenceAddTransform
(xmlNodePtr cipherReferenceNode,
xmlSecTransformId transformId); |
Adds <dsig:Transform/> node (and the parent <dsig:Transforms/> node)
with specified transform methods transform to the <enc:CipherReference/>
child node of the <enc:EncryptedData/> node encNode.
xmlSecTmplKeyInfoAddKeyName ()
xmlNodePtr xmlSecTmplKeyInfoAddKeyName (xmlNodePtr keyInfoNode,
const xmlChar *name); |
Adds <dsig:KeyName/> node to the <dsig:KeyInfo/> node keyInfoNode.
xmlSecTmplKeyInfoAddKeyValue ()
xmlNodePtr xmlSecTmplKeyInfoAddKeyValue (xmlNodePtr keyInfoNode); |
Adds <dsig:KeyValue/> node to the <dsig:KeyInfo/> node keyInfoNode.
xmlSecTmplKeyInfoAddX509Data ()
xmlNodePtr xmlSecTmplKeyInfoAddX509Data (xmlNodePtr keyInfoNode); |
Adds <dsig:X509Data/> node to the <dsig:KeyInfo/> node keyInfoNode.
xmlSecTmplKeyInfoAddRetrievalMethod ()
xmlNodePtr xmlSecTmplKeyInfoAddRetrievalMethod
(xmlNodePtr keyInfoNode,
const xmlChar *uri,
const xmlChar *type); |
Adds <dsig:RetrievalMethod/> node to the <dsig:KeyInfo/> node keyInfoNode.
xmlSecTmplRetrievalMethodAddTransform ()
xmlNodePtr xmlSecTmplRetrievalMethodAddTransform
(xmlNodePtr retrMethodNode,
xmlSecTransformId transformId); |
Adds <dsig:Transform/> node (and the parent <dsig:Transforms/> node
if required) to the <dsig:RetrievalMethod/> node retrMethod.
xmlSecTmplKeyInfoAddEncryptedKey ()
xmlNodePtr xmlSecTmplKeyInfoAddEncryptedKey
(xmlNodePtr keyInfoNode,
xmlSecTransformId encMethodId,
const xmlChar *id,
const xmlChar *type,
const xmlChar *recipient); |
Adds <enc:EncryptedKey/> node with given attributes to
the <dsig:KeyInfo/> node keyInfoNode.
xmlSecTmplTransformAddHmacOutputLength ()
int xmlSecTmplTransformAddHmacOutputLength
(xmlNodePtr transformNode,
size_t bitsLen); |
Creates <dsig:HMACOutputLength>child for the HMAC transform
node node.
xmlSecTmplTransformAddRsaOaepParam ()
int xmlSecTmplTransformAddRsaOaepParam
(xmlNodePtr transformNode,
unsigned char *buf,
size_t size); |
Creates <enc:OAEPParam/> child node in the node.
xmlSecTmplTransformAddXsltStylesheet ()
int xmlSecTmplTransformAddXsltStylesheet
(xmlNodePtr transformNode,
const xmlChar *xslt); |
Writes the XSLT transform expression to the node.
xmlSecTmplTransformAddC14NInclNamespaces ()
int xmlSecTmplTransformAddC14NInclNamespaces
(xmlNodePtr transformNode,
const xmlChar *prefixList); |
Adds "inclusive" namespaces to the ExcC14N transform node node.
xmlSecTmplTransformAddXPath ()
int xmlSecTmplTransformAddXPath (xmlNodePtr transformNode,
const xmlChar *expression,
const xmlChar **nsList); |
Writes XPath transform infromation to the <dsig:Transform/> node
node.
xmlSecTmplTransformAddXPath2 ()
int xmlSecTmplTransformAddXPath2 (xmlNodePtr transformNode,
const xmlChar *type,
const xmlChar *expression,
const xmlChar **nsList); |
Writes XPath2 transform infromation to the <dsig:Transform/> node
node.
xmlSecTmplTransformAddXPointer ()
int xmlSecTmplTransformAddXPointer (xmlNodePtr transformNode,
const xmlChar *expression,
const xmlChar **nsList); |
Writes XPoniter transform infromation to the <dsig:Transform/> node
node.
|
Aleksey Sanin
|
|