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.
|
Integer |
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(Integer 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, isEnabledpublic 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 CreateKeyOptionskeyOperations - The key operations to set.CreateRsaKeyOptions object.public CreateRsaKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore UTC time.setNotBefore in class CreateKeyOptionsnotBefore - The notBefore UTC time to set.CreateRsaKeyOptions object.public CreateRsaKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires UTC time.setExpiresOn in class CreateKeyOptionsexpiresOn - The expiry time to set for the key.CreateRsaKeyOptions object.public CreateRsaKeyOptions setTags(Map<String,String> tags)
setTags in class CreateKeyOptionstags - The tags to set.CreateRsaKeyOptions object.public CreateRsaKeyOptions setEnabled(Boolean enabled)
setEnabled in class CreateKeyOptionsenabled - 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 Integer getPublicExponent()
public CreateRsaKeyOptions setPublicExponent(Integer publicExponent)
publicExponent - The public exponent to set.CreateRsaKeyOptions object.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.