public class CreateOctKeyOptions extends CreateKeyOptions
Constructor and Description |
---|
CreateOctKeyOptions(String name)
Creates a
CreateOctKeyOptions with name as name of the AES key. |
Modifier and Type | Method and Description |
---|---|
Integer |
getKeySize()
Get the key size in bits.
|
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 |
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)
Set the key size in bits.
|
CreateOctKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
CreateOctKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getTags, isEnabled
public CreateOctKeyOptions(String name)
CreateOctKeyOptions
with name
as name of the AES key.name
- The name of the key.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 setKeySize(Integer keySize)
keySize
- The key size to set.CreateOctKeyOptions
object.public Integer getKeySize()
public CreateOctKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected
- The HSM value to set.CreateOctKeyOptions
object.public Boolean isHardwareProtected()
Copyright © 2021 Microsoft Corporation. All rights reserved.