CreateOctKeyOptions Class
- java.
lang. Object - com.
azure. security. keyvault. keys. models. CreateKeyOptions - com.
azure. security. keyvault. keys. models. CreateOctKeyOptions
- com.
- com.
public class CreateOctKeyOptions
extends CreateKeyOptions
Represents the configurable options to create a symmetric key.
Constructor Summary
Constructor | Description |
---|---|
CreateOctKeyOptions(String name) |
Creates a CreateOctKeyOptions with |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
getKeySize()
Gets the key size in bits, such as 128, 192, or 256. |
Boolean |
isHardwareProtected()
Get the HSM value of the key being created. |
Create |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled. |
Create |
setExpiresOn(OffsetDateTime expiresOn)
Set the expires UTC time. |
Create |
setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported. |
Create |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not. |
Create |
setKeyOperations(KeyOperation[] keyOperations)
Set the key operations. |
Create |
setKeySize(Integer keySize)
Sets the key size in bits, such as 128, 192, or 256. |
Create |
setNotBefore(OffsetDateTime notBefore)
Set the notBefore UTC time. |
Create |
setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported. |
Create |
setTags(Map<String,String> tags)
Set the tags to be associated with the key. |
Methods inherited from CreateKeyOptions
Methods inherited from java.lang.Object
Constructor Details
CreateOctKeyOptions
public CreateOctKeyOptions(String name)
Creates a CreateOctKeyOptions with name
as name of the key.
Parameters:
Method Details
getKeySize
public Integer getKeySize()
Gets the key size in bits, such as 128, 192, or 256.
Returns:
isHardwareProtected
public Boolean isHardwareProtected()
Get the HSM value of the key being created.
Returns:
setEnabled
public CreateOctKeyOptions setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
Overrides:
CreateOctKeyOptions.setEnabled(Boolean enabled)Parameters:
Returns:
setExpiresOn
public CreateOctKeyOptions setExpiresOn(OffsetDateTime expiresOn)
Set the expires UTC time.
Overrides:
CreateOctKeyOptions.setExpiresOn(OffsetDateTime expiresOn)Parameters:
Returns:
setExportable
public CreateOctKeyOptions setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
Overrides:
CreateOctKeyOptions.setExportable(Boolean exportable)Parameters:
Returns:
setHardwareProtected
public CreateOctKeyOptions setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not.
Parameters:
Returns:
setKeyOperations
public CreateOctKeyOptions setKeyOperations(KeyOperation[] keyOperations)
Set the key operations.
Overrides:
CreateOctKeyOptions.setKeyOperations(KeyOperation[] keyOperations)Parameters:
Returns:
setKeySize
public CreateOctKeyOptions setKeySize(Integer keySize)
Sets the key size in bits, such as 128, 192, or 256. If null
, the service default is used.
Parameters:
Returns:
setNotBefore
public CreateOctKeyOptions setNotBefore(OffsetDateTime notBefore)
Set the notBefore UTC time.
Overrides:
CreateOctKeyOptions.setNotBefore(OffsetDateTime notBefore)Parameters:
Returns:
setReleasePolicy
public CreateOctKeyOptions setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
Overrides:
CreateOctKeyOptions.setReleasePolicy(KeyReleasePolicy releasePolicy)Parameters:
Returns:
setTags
public CreateOctKeyOptions setTags(Map
Set the tags to be associated with the key.
Overrides:
CreateOctKeyOptions.setTags(Map<String,String> tags)Parameters:
Returns:
Applies to
Azure SDK for Java