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 |
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 |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getTags, isEnabledpublic 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 CreateKeyOptionskeyOperations - The key operations to set.CreateOctKeyOptions object.public CreateOctKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore UTC time.setNotBefore in class CreateKeyOptionsnotBefore - The notBefore UTC time to set.CreateOctKeyOptions object.public CreateOctKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires UTC time.setExpiresOn in class CreateKeyOptionsexpiresOn - The expiry time to set. for the key.CreateOctKeyOptions object.public CreateOctKeyOptions setTags(Map<String,String> tags)
setTags in class CreateKeyOptionstags - The tags to set.CreateOctKeyOptions object.public CreateOctKeyOptions setEnabled(Boolean enabled)
setEnabled in class CreateKeyOptionsenabled - The enabled value to set.CreateOctKeyOptions object.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.