Class CreateRsaKeyOptions
java.lang.Object
com.azure.security.keyvault.keys.models.CreateKeyOptions
com.azure.security.keyvault.keys.models.CreateRsaKeyOptions
Represents the configurable options to create an RSA key.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateRsaKeyOptions(String name) Creates aCreateRsaKeyOptionswithnameas name of the RSA key. -
Method Summary
Modifier and TypeMethodDescriptionGet the key size in bits.Get the public exponent for the key.Get the HSM value of the key being created.setEnabled(Boolean enabled) Set a value that indicates if the key is enabled.setExpiresOn(OffsetDateTime expiresOn) Set theexpiresUTC time.setExportable(Boolean exportable) Set a flag that indicates if the private key can be exported.setHardwareProtected(Boolean hardwareProtected) Set whether the key being created is of HSM type or not.setKeyOperations(KeyOperation... keyOperations) Set the key operations.setKeySize(Integer keySize) Set the key size in bits.setNotBefore(OffsetDateTime notBefore) Set thenotBeforeUTC time.setPublicExponent(Integer publicExponent) Set the public exponent for the key.setReleasePolicy(KeyReleasePolicy releasePolicy) Set the policy rules under which the key can be exported.Set the tags to be associated with the key.Methods inherited from class CreateKeyOptions
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getReleasePolicy, getTags, isEnabled, isExportable
-
Constructor Details
-
CreateRsaKeyOptions
Creates aCreateRsaKeyOptionswithnameas name of the RSA key.- Parameters:
name- The name of the key.
-
-
Method Details
-
getKeySize
-
setKeySize
Set the key size in bits.- Parameters:
keySize- The key size in bits to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
isHardwareProtected
Get the HSM value of the key being created.- Returns:
- The HSM value.
-
setHardwareProtected
Set whether the key being created is of HSM type or not.- Parameters:
hardwareProtected- The HSM value to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
getPublicExponent
Get the public exponent for the key.- Returns:
- The public exponent.
-
setPublicExponent
Set the public exponent for the key.- Parameters:
publicExponent- The public exponent to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
setKeyOperations
Set the key operations.- Overrides:
setKeyOperationsin classCreateKeyOptions- Parameters:
keyOperations- The key operations to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
setNotBefore
Set thenotBeforeUTC time.- Overrides:
setNotBeforein classCreateKeyOptions- Parameters:
notBefore- The notBefore UTC time to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
setExpiresOn
Set theexpiresUTC time.- Overrides:
setExpiresOnin classCreateKeyOptions- Parameters:
expiresOn- The expiry time to set for the key.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
setTags
Set the tags to be associated with the key.- Overrides:
setTagsin classCreateKeyOptions- Parameters:
tags- The tags to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
setEnabled
Set a value that indicates if the key is enabled.- Overrides:
setEnabledin classCreateKeyOptions- Parameters:
enabled- The enabled value to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
setExportable
Set a flag that indicates if the private key can be exported.- Overrides:
setExportablein classCreateKeyOptions- Parameters:
exportable- A flag that indicates if the private key can be exported.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-
setReleasePolicy
Set the policy rules under which the key can be exported.- Overrides:
setReleasePolicyin classCreateKeyOptions- Parameters:
releasePolicy- The policy rules to set.- Returns:
- The updated
CreateRsaKeyOptionsobject.
-