#include <XKMSRSAKeyPair.hpp>
The <RSAKeyPair> is one of the few XKMS elements that is not directly part of an XKMS Message. It is sent in RegisterResult and RecoverResult messages as a CipherData.
This element allows the service to provide back to the user a complete RSA key - including the private components. The various components that make up an RSA key are all provided in Base64 format (CryptoBinary type)
The schema definition for RSAKeyPair is as follows :
<!-- RSAKeyPair -->
<element name="RSAKeyPair" type="xkms:RSAKeyPairType"/>
<complexType name="RSAKeyPairType">
<sequence>
<element ref="xkms:Modulus"/>
<element ref="xkms:Exponent"/>
<element ref="xkms:P"/>
<element ref="xkms:Q"/>
<element ref="xkms:DP"/>
<element ref="xkms:DQ"/>
<element ref="xkms:InverseQ"/>
<element ref="xkms:D"/>
</sequence>
</complexType>
<element name="Modulus" type="ds:CryptoBinary"/>
<element name="Exponent" type="ds:CryptoBinary"/>
<element name="P" type="ds:CryptoBinary"/>
<element name="Q" type="ds:CryptoBinary"/>
<element name="DP" type="ds:CryptoBinary"/>
<element name="DQ" type="ds:CryptoBinary"/>
<element name="InverseQ" type="ds:CryptoBinary"/>
<element name="D" type="ds:CryptoBinary"/>
<!-- /RSAKeyPair -->
Constructors and Destructors | |
| virtual | ~XKMSRSAKeyPair () |
| XKMSRSAKeyPair () | |
Public Member Functions | |
Getter Interface Methods | |
| virtual const XMLCh * | getModulus (void) const =0 |
| Get the Modulus of the key pair. | |
| virtual const XMLCh * | getExponent (void) const =0 |
| Get the Exponent of the key pair. | |
| virtual const XMLCh * | getP (void) const =0 |
| Get the P of the key pair. | |
| virtual const XMLCh * | getQ (void) const =0 |
| Get the Q of the key pair. | |
| virtual const XMLCh * | getDP (void) const =0 |
| Get the DP of the key pair. | |
| virtual const XMLCh * | getDQ (void) const =0 |
| Get the DQ of the key pair. | |
| virtual const XMLCh * | getInverseQ (void) const =0 |
| Get the InverseQ of the key pair. | |
| virtual const XMLCh * | getD (void) const =0 |
| Get the D of the key pair. | |
|
|
|
|
|
|
|
|
Get the D of the key pair.
|
|
|
Get the DP of the key pair.
|
|
|
Get the DQ of the key pair.
|
|
|
Get the Exponent of the key pair.
|
|
|
Get the InverseQ of the key pair.
|
|
|
Get the Modulus of the key pair.
|
|
|
Get the P of the key pair.
|
|
|
Get the Q of the key pair.
|
1.4.2