public class CreateOctKeyOptions extends CreateKeyOptions
Constructor and Description |
---|
CreateOctKeyOptions(String name)
Creates a
CreateOctKeyOptions with name as name of the key. |
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.
|
CreateOctKeyOptions |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
|
CreateOctKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
CreateOctKeyOptions |
setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
|
CreateOctKeyOptions |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not.
|
CreateOctKeyOptions |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations.
|
CreateOctKeyOptions |
setKeySize(Integer keySize)
Sets the key size in bits, such as 128, 192, or 256.
|
CreateOctKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
CreateOctKeyOptions |
setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
|
CreateOctKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getReleasePolicy, getTags, isEnabled, isExportable
public CreateOctKeyOptions(String name)
CreateOctKeyOptions
with name
as name of the key.name
- The name of the key.public CreateOctKeyOptions setKeySize(Integer keySize)
null
, the service default is used.keySize
- The key size in bits to set.CreateOctKeyOptions
object.public Integer getKeySize()
public CreateOctKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected
- The HSM value to set.CreateOctKeyOptions
object.public Boolean isHardwareProtected()
public CreateOctKeyOptions setKeyOperations(KeyOperation... keyOperations)
setKeyOperations
in class CreateKeyOptions
keyOperations
- The key operations to set.CreateOctKeyOptions
object.public CreateOctKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.setNotBefore
in class CreateKeyOptions
notBefore
- The notBefore UTC time to set.CreateOctKeyOptions
object.public CreateOctKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.setExpiresOn
in class CreateKeyOptions
expiresOn
- The expiry time to set. for the key.CreateOctKeyOptions
object.public CreateOctKeyOptions setTags(Map<String,String> tags)
setTags
in class CreateKeyOptions
tags
- The tags to set.CreateOctKeyOptions
object.public CreateOctKeyOptions setEnabled(Boolean enabled)
setEnabled
in class CreateKeyOptions
enabled
- The enabled value to set.CreateOctKeyOptions
object.public CreateOctKeyOptions setExportable(Boolean exportable)
setExportable
in class CreateKeyOptions
exportable
- A flag that indicates if the private key can be exported.CreateOctKeyOptions
object.public CreateOctKeyOptions setReleasePolicy(KeyReleasePolicy releasePolicy)
setReleasePolicy
in class CreateKeyOptions
releasePolicy
- The policy rules to set.CreateOctKeyOptions
object.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.