Interface Key.DefinitionStages.WithKey
- All Known Subinterfaces:
Key.Definition
,Key.DefinitionStages.Blank
- Enclosing interface:
- Key.DefinitionStages
public static interface Key.DefinitionStages.WithKey
The stage of a key definition allowing to specify whether
to create a key or to import a key.
-
Method Summary
Modifier and TypeMethodDescriptionwithKeyTypeToCreate
(com.microsoft.azure.keyvault.webkey.JsonWebKeyType keyType) Specifies a key type to create a new key.withLocalKeyToImport
(com.microsoft.azure.keyvault.webkey.JsonWebKey key) Specifies an existing key to import.
-
Method Details
-
withKeyTypeToCreate
Key.DefinitionStages.WithCreate withKeyTypeToCreate(com.microsoft.azure.keyvault.webkey.JsonWebKeyType keyType) Specifies a key type to create a new key.- Parameters:
keyType
- the JWK type to create- Returns:
- the next stage of the definition
-
withLocalKeyToImport
Key.DefinitionStages.WithImport withLocalKeyToImport(com.microsoft.azure.keyvault.webkey.JsonWebKey key) Specifies an existing key to import.- Parameters:
key
- the existing JWK to import- Returns:
- the next stage of the definition
-