获取托管密码
<p><span style="font-size:14px"><strong>描述:</strong></span></p>
<p>查询托管密码,返回的值是经过AES_128对称加密的密文,使用时需要进行对称解密。</p>
<p><span style="font-size:14px"><strong>请求参数:</strong></span></p>
<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td style="background-color:#ededed"><strong>名称</strong></td>
<td style="background-color:#ededed"><strong>类型</strong></td>
<td style="background-color:#ededed"><strong>是否必须</strong></td>
<td style="background-color:#ededed"><strong>描述</strong></td>
</tr>
<tr>
<td>requestTime</td>
<td>String</td>
<td>是</td>
<td>请求时间,格式为:yyyyMMddhhmmssSSS</td>
</tr>
<tr>
<td>appId</td>
<td>String</td>
<td>是</td>
<td>应用的唯一识别码,由系统分配</td>
</tr>
<tr>
<td>keychainAccount</td>
<td>String</td>
<td>否</td>
<td>托管的账号名称(如数据库的账号名称)</td>
</tr>
<tr>
<td>reason</td>
<td>String</td>
<td>否</td>
<td>获取原因</td>
</tr>
<tr>
<td>encryptVersion</td>
<td>String</td>
<td>否</td>
<td>
<p>加密版本(获取到的密码的加密方式)</p>
<p>可选字段,用于区分加解密模式,兼容AES的ECB和CBC两种模式</p>
<p>传参,encryptVersion="2.0",为AES的CBC加密模式</p>
<p>不传参,则默认为AES的ECB加密方式</p>
<p>目前仅支持上面两种方式,否则会报参数错误</p>
</td>
</tr>
<tr>
<td>sign</td>
<td>String</td>
<td>是</td>
<td>签名值,见签名算法</td>
</tr>
</tbody>
</table>
<p><strong>返回参数:</strong></p>
<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td style="background-color:#ededed"><strong>名称</strong></td>
<td style="background-color:#ededed"><strong>类型</strong></td>
<td style="background-color:#ededed"><strong>描述</strong></td>
</tr>
<tr>
<td>code</td>
<td>String</td>
<td>返回码,成功返回"SUCCESS"</td>
</tr>
<tr>
<td>responseTime</td>
<td>String</td>
<td>响应时间,格式为:yyyyMMddhhmmssSSS</td>
</tr>
<tr>
<td>appId</td>
<td>String</td>
<td>应用的唯一识别码,由系统分配</td>
</tr>
<tr>
<td>keychainAccount</td>
<td>String</td>
<td>托管的账号名称(如数据库的账号名称)</td>
</tr>
<tr>
<td>region</td>
<td>String</td>
<td>托管的区域</td>
</tr>
<tr>
<td>reason</td>
<td>String</td>
<td>获取原因,返回请求中的输入</td>
</tr>
<tr>
<td>keychainPassword</td>
<td>String</td>
<td>获取到的托管密码密文,加密方式见加密算法</td>
</tr>
<tr>
<td>sign</td>
<td>String</td>
<td>见签名算法</td>
</tr>
<tr>
<td>requestId</td>
<td>String</td>
<td>当前请求Id</td>
</tr>
</tbody>
</table>
<p><span style="font-size:14px"><strong>请求示例:</strong></span></p>
<pre>
<code>https://kms-cn-shanghai.yun.pingan.com/?action=GetKeychainPassword
&reason=<get password reason>
&sign=<sign>
&requestTime=<requestTime>
&appId=<app id>
&keychainAccount=<keychainAccount>
&<公共请求参数></code></pre>
<p><span style="font-size:14px"><strong>返回示例:</strong></span></p>
<pre>
<code>{
"code": "SUCCESS",
"reason": "your get password reason",
"responseTime": "20181204162959982",
"appId": "your appId",
"sign": "sign value",
"keychainAccount": "keychainAccount",
"keychainPassword": "password"
"requestId": "7d5e94eb-75b6-45fc-a974-30d21296f48b",
}</code></pre>
<p> </p>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!