如何获取密钥类型? [英] How to obtain key type?

查看:117
本文介绍了如何获取密钥类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JAVA SDK从Vault中获取密钥列表,但看不到对象上的任何属性或方法来确定密钥类型.

I'm using the JAVA SDK to obtain a list of keys from the vault but can't see any attributes or methods on the Object to determine the Key Type..

因此,我正在使用以下API来获取资源组中的Vault列表:

So I'm using the following API to get a list of vaults within a resource group:

Vault.listByResourceGroup(String resourceGroupName);

然后使用以下内容在保管库中获取保管库中的密钥列表:

Then on the vault using the following to get a list of the Keys in the vault:

键()

哪个返回实现的实例:

com.microsoft.azure.management.keyvault.Key

推荐答案

要同时显示键类型和状态,请运行以下命令: 

To display both the KeyTypes and the Status, run the command: 

Get-AadrmKeys []

>请参见

See the document for more details. 

如果您还需要WebKeyType的列表,请参见 在StackOverflow上. 

If you also want a list of the WebKeyTypes, see the discussion on StackOverflow. 


这篇关于如何获取密钥类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆