Package | Description |
---|---|
com.azure.security.keyvault.keys |
Package containing classes for creating
KeyAsyncClient and
KeyClient to perform operations on Azure Key Vault. |
com.azure.security.keyvault.keys.models |
Package containing classes used for representing keys, deleted keys and their attributes in
Azure Key Vault.
|
Modifier and Type | Method and Description |
---|---|
Mono<KeyVaultKey> |
KeyAsyncClient.createOctKey(CreateOctKeyOptions createOctKeyOptions)
Creates and stores a new
symmetric key in the key vault. |
KeyVaultKey |
KeyClient.createOctKey(CreateOctKeyOptions createOctKeyOptions)
Creates and stores a new
symmetric key in the key vault. |
Mono<com.azure.core.http.rest.Response<KeyVaultKey>> |
KeyAsyncClient.createOctKeyWithResponse(CreateOctKeyOptions createOctKeyOptions)
Creates and stores a new
symmetric key in the key vault. |
com.azure.core.http.rest.Response<KeyVaultKey> |
KeyClient.createOctKeyWithResponse(CreateOctKeyOptions createOctKeyOptions,
com.azure.core.util.Context context)
Creates and stores a new
symmetric key in the key vault. |
Modifier and Type | Method and Description |
---|---|
CreateOctKeyOptions |
CreateOctKeyOptions.setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
|
CreateOctKeyOptions |
CreateOctKeyOptions.setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
CreateOctKeyOptions |
CreateOctKeyOptions.setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
|
CreateOctKeyOptions |
CreateOctKeyOptions.setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not.
|
CreateOctKeyOptions |
CreateOctKeyOptions.setKeyOperations(KeyOperation... keyOperations)
Set the key operations.
|
CreateOctKeyOptions |
CreateOctKeyOptions.setKeySize(Integer keySize)
Sets the key size in bits, such as 128, 192, or 256.
|
CreateOctKeyOptions |
CreateOctKeyOptions.setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
CreateOctKeyOptions |
CreateOctKeyOptions.setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
|
CreateOctKeyOptions |
CreateOctKeyOptions.setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.