public class CreateRsaKeyOptions extends CreateKeyOptions
| Constructor and Description |
|---|
CreateRsaKeyOptions(String name)
Creates a RsaKeyCreateOptions with
name as name of the Rsa key. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getKeySize()
Get the keySize value.
|
Boolean |
isHardwareProtected()
Get the hsm value of the key being created.
|
CreateRsaKeyOptions |
setEnabled(Boolean enabled)
Set the enabled value.
|
CreateRsaKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
CreateRsaKeyOptions |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of hsm type or not.
|
CreateRsaKeyOptions |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations value.
|
CreateRsaKeyOptions |
setKeySize(Integer keySize)
Set the keySize value.
|
CreateRsaKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
CreateRsaKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getTags, isEnabledpublic CreateRsaKeyOptions(String name)
name as name of the Rsa key.name - The name of the key.public Integer getKeySize()
public CreateRsaKeyOptions setKeySize(Integer keySize)
keySize - The keySize value to setpublic CreateRsaKeyOptions setKeyOperations(KeyOperation... keyOperations)
setKeyOperations in class CreateKeyOptionskeyOperations - The key operations value to setpublic CreateRsaKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore UTC time.setNotBefore in class CreateKeyOptionsnotBefore - The notBefore UTC time to setpublic CreateRsaKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires UTC time.setExpiresOn in class CreateKeyOptionsexpiresOn - The expiry time to set for the key.public CreateRsaKeyOptions setTags(Map<String,String> tags)
setTags in class CreateKeyOptionstags - The tags to setpublic CreateRsaKeyOptions setEnabled(Boolean enabled)
setEnabled in class CreateKeyOptionsenabled - The enabled value to setpublic CreateRsaKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected - The hsm value to set.public Boolean isHardwareProtected()
Copyright © 2021 Microsoft Corporation. All rights reserved.