如何获取密钥类型? [英] How to obtain key type?
问题描述
我正在使用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屋!