OMElement element = getAsOMElement(request);
OMElement result = sendReceive(element, serverURL);
result = buildElement(result);
RecoverResult recoverResult = getRecoverResult(result);
ResultMinor resultMinor = recoverResult.getResultMinor();
if (resultMinor != null && ResultMinor.NO_MATCH.equals(resultMinor)) {
return null;
}
org.wso2.xkms2.PrivateKey xkmsPrivateKey = recoverResult
.getPrivateKey();
xkmsPrivateKey.setKey(XKMSKeyUtil.getPrivateKey(passPhrase,
"DESede"));
KeyPair keyPair = xkmsPrivateKey.getRSAKeyPair();
return keyPair.getPrivate();