public class CreateRsaKeyOptions extends CreateKeyOptions
Constructor and Description |
---|
CreateRsaKeyOptions(String name)
Creates a
CreateRsaKeyOptions with name as name of the RSA key. |
Modifier and Type | Method and Description |
---|---|
Integer |
getKeySize()
Get the key size in bits.
|
int |
getPublicExponent()
Get the public exponent for the key.
|
Boolean |
isHardwareProtected()
Get the HSM value of the key being created.
|
CreateRsaKeyOptions |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
|
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.
|
CreateRsaKeyOptions |
setKeySize(Integer keySize)
Set the key size.
|
CreateRsaKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
CreateRsaKeyOptions |
setPublicExponent(int publicExponent)
Set the public exponent for the key.
|
CreateRsaKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getTags, isEnabled
public CreateRsaKeyOptions(String name)
CreateRsaKeyOptions
with name
as name of the RSA key.name
- The name of the key.public CreateRsaKeyOptions setKeyOperations(KeyOperation... keyOperations)
setKeyOperations
in class CreateKeyOptions
keyOperations
- The key operations to set.CreateRsaKeyOptions
object.public CreateRsaKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.setNotBefore
in class CreateKeyOptions
notBefore
- The notBefore UTC time to set.CreateRsaKeyOptions
object.public CreateRsaKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.setExpiresOn
in class CreateKeyOptions
expiresOn
- The expiry time to set for the key.CreateRsaKeyOptions
object.public CreateRsaKeyOptions setTags(Map<String,String> tags)
setTags
in class CreateKeyOptions
tags
- The tags to set.CreateRsaKeyOptions
object.public CreateRsaKeyOptions setEnabled(Boolean enabled)
setEnabled
in class CreateKeyOptions
enabled
- The enabled value to set.CreateRsaKeyOptions
object.public CreateRsaKeyOptions setKeySize(Integer keySize)
keySize
- The key size to set.CreateRsaKeyOptions
object.public Integer getKeySize()
public CreateRsaKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected
- The HSM value to set.CreateRsaKeyOptions
object.public Boolean isHardwareProtected()
public int getPublicExponent()
public CreateRsaKeyOptions setPublicExponent(int publicExponent)
publicExponent
- The public exponent to set.CreateRsaKeyOptions
object.Copyright © 2021 Microsoft Corporation. All rights reserved.