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(KeyType keyType) Specifies a key type to create a new key.Specifies an existing key to import.
-
Method Details
-
withKeyTypeToCreate
Specifies a key type to create a new key.- Parameters:
keyType- the JWK type to create- Returns:
- the next stage of the definition
-
withLocalKeyToImport
Specifies an existing key to import.- Parameters:
key- the existing JWK to import- Returns:
- the next stage of the definition
-