Session_WrapKey
This API wraps key.
URL
./Session_WrapKey
Input Parameters
Parameters | Description |
---|---|
keyName | Name of the key to be wrapped. |
keyUseForWrap | Key to be used for wrapping. |
wrapFormatPadding | Padding format to be used for wrapping the key. This is an optional parameter. It is used for PKCS#1v2.1 and one of the following padding is used: SHA256, SHA384, and SHA512. |
Sample SOAP Parameters
Output
Wrap key bytes.
Note
cxf-manifest.jar should be included in the Java client build path while calling Session_WrapKey web services.
Unwrap Key using OpenSSL
The
Session_WrapKey
API generates output in hex format. To unwrap the key, convert it into byte array and then write the Base64 encoded wrapped key to file as shown here.Based on the padding scheme, run the following command.
Read the unwrapped key bytes from the file. Convert the byte array into hex format as shown here.