#include <XKMSKeyBindingAbstractType.hpp>
Inheritance diagram for XKMSKeyBindingAbstractType:
The <KeyBindingAbstractType> is an abstract type on which all KeyBinding components are build.
The schema definition for KeyBindingAbstractType is as follows :
<!-- KeyBindingAbstractType--> <complexType name="KeyBindingAbstractType" abstract="true"> <sequence> <element ref="ds:KeyInfo" minOccurs="0"/> <element ref="xkms:KeyUsage" minOccurs="0" maxOccurs="3"/> <element ref="xkms:UseKeyWith" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute name="Id" type="ID" use="optional"/> </complexType> <!-- /KeyBindingAbstractType-->
Constructors and Destructors | |
virtual | ~XKMSKeyBindingAbstractType () |
XKMSKeyBindingAbstractType () | |
Public Member Functions | |
Getter Interface Methods | |
virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | getElement (void) const =0 |
virtual const XMLCh * | getId (void) const =0 |
Get the Id for the KeyBinding. | |
virtual DSIGKeyInfoList * | getKeyInfoList (void) const =0 |
Obtain the KeyInfo elements for this KeyBinding. | |
virtual bool | getEncryptionKeyUsage (void) const =0 |
Determine if an Encryption key usage is set. | |
virtual bool | getSignatureKeyUsage (void) const =0 |
Determine if an Signature key usage is set. | |
virtual bool | getExchangeKeyUsage (void) const =0 |
Determine if an Exchange key usage is set. | |
Setter interface methods | |
virtual void | setId (const XMLCh *id=NULL)=0 |
Set the Id URI for the Message. | |
virtual void | setEncryptionKeyUsage (void)=0 |
Set Encryption key usage on. | |
virtual void | setSignatureKeyUsage (void)=0 |
Set Signature key usage on. | |
virtual void | setExchangeKeyUsage (void)=0 |
Set Exchange key usage on. | |
KeyInfo Element Manipulation | |
virtual DSIGKeyInfoList * | getKeyInfoList (void)=0 |
Get the list of <KeyInfo> elements. | |
virtual void | clearKeyInfo (void)=0 |
Clear out all KeyInfo elements in the KeyBinding. | |
virtual DSIGKeyInfoValue * | appendDSAKeyValue (const XMLCh *P, const XMLCh *Q, const XMLCh *G, const XMLCh *Y)=0 |
Append a DSA KeyValue element. | |
virtual DSIGKeyInfoValue * | appendRSAKeyValue (const XMLCh *modulus, const XMLCh *exponent)=0 |
Append a RSA KeyValue element. | |
virtual DSIGKeyInfoX509 * | appendX509Data (void)=0 |
Append a X509Data element. | |
virtual DSIGKeyInfoName * | appendKeyName (const XMLCh *name, bool isDName=false)=0 |
Append a KeyName element. | |
virtual DSIGKeyInfoPGPData * | appendPGPData (const XMLCh *id, const XMLCh *packet)=0 |
Append a PGPData element. | |
virtual DSIGKeyInfoSPKIData * | appendSPKIData (const XMLCh *sexp)=0 |
Append a SPKIData element. | |
virtual DSIGKeyInfoMgmtData * | appendMgmtData (const XMLCh *data)=0 |
Append a MgmtData element. | |
UseKeyWith handling | |
virtual int | getUseKeyWithSize (void) const =0 |
Find number of UseKeyWith elements. | |
virtual XKMSUseKeyWith * | getUseKeyWithItem (int item) const =0 |
virtual XKMSUseKeyWith * | appendUseKeyWithItem (const XMLCh *application, const XMLCh *identifier)=0 |
|
|
|
|
|
Append a DSA KeyValue element. Add a new KeyInfo element for a DSA Value
|
|
Append a KeyName element. Add a new KeyInfo element for a key name.
|
|
Append a MgmtData element. Add a new KeyInfo element for Management Data
|
|
Append a PGPData element. Add a new KeyInfo element for a PGP key.
|
|
Append a RSA KeyValue element. Add a new KeyInfo element for a RSA Value
|
|
Append a SPKIData element. Add a new KeyInfo element for a set of SPKI S-expressions
|
|
|
|
Append a X509Data element. Add a new KeyInfo element for X509 data.
|
|
Clear out all KeyInfo elements in the KeyBinding. This function will delete all KeyInfo elements from both the KeyBinding object and the associated DOM. |
|
|
|
Determine if an Encryption key usage is set. KeyBinding elements may define Encryption, Signature of Exchange as being permitted for a particular key.
|
|
Determine if an Exchange key usage is set. KeyBinding elements may define Encryption, Signature of Exchange as being permitted for a particular key.
|
|
Get the Id for the KeyBinding. All KeyBinding elements MAY have an Id attribute that identifies the binding. This method is used to retrieve a pointer to the Id string.
|
|
Get the list of <KeyInfo> elements. This function recovers list that contains the KeyInfo elements read in from the DOM document.
|
|
Obtain the KeyInfo elements for this KeyBinding. KeyBinding elements may provide information about the keys that are being bound.
|
|
Determine if an Signature key usage is set. KeyBinding elements may define Encryption, Signature of Exchange as being permitted for a particular key.
|
|
|
|
Find number of UseKeyWith elements.
|
|
Set Encryption key usage on. KeyBinding elements may define Encryption, Signature of Exchange as being permitted for a particular key. When first created, all these elements are off (which indicates that all are permitted). This call activates the Encryption key usage for this KeyBinding |
|
Set Exchange key usage on. KeyBinding elements may define Encryption, Signature of Exchange as being permitted for a particular key. When first created, all these elements are off (which indicates that all are permitted). This call activates the Exchange key usage for this KeyBinding |
|
Set the Id URI for the Message. Allows a calling application to set a new Id for the KeyBinding
|
|
Set Signature key usage on. KeyBinding elements may define Encryption, Signature of Exchange as being permitted for a particular key. When first created, all these elements are off (which indicates that all are permitted). This call activates the Signature key usage for this KeyBinding |