CreateRsaKeyOptions Class
- java.
lang. Object - com.
azure. security. keyvault. keys. models. CreateKeyOptions - com.
azure. security. keyvault. keys. models. CreateRsaKeyOptions
- com.
- com.
public class CreateRsaKeyOptions
extends CreateKeyOptions
Represents the configurable options to create an RSA key.
Constructor Summary
Constructor | Description |
---|---|
CreateRsaKeyOptions(String name) |
Creates a CreateRsaKeyOptions with |
Method Summary
Methods inherited from CreateKeyOptions
Methods inherited from java.lang.Object
Constructor Details
CreateRsaKeyOptions
public CreateRsaKeyOptions(String name)
Creates a CreateRsaKeyOptions with name
as name of the RSA key.
Parameters:
Method Details
getKeySize
public Integer getKeySize()
Get the key size in bits.
Returns:
getPublicExponent
public Integer getPublicExponent()
Get the public exponent for the key.
Returns:
isHardwareProtected
public Boolean isHardwareProtected()
Get the HSM value of the key being created.
Returns:
setEnabled
public CreateRsaKeyOptions setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
Overrides:
CreateRsaKeyOptions.setEnabled(Boolean enabled)Parameters:
Returns:
setExpiresOn
public CreateRsaKeyOptions setExpiresOn(OffsetDateTime expiresOn)
Set the expires UTC time.
Overrides:
CreateRsaKeyOptions.setExpiresOn(OffsetDateTime expiresOn)Parameters:
Returns:
setExportable
public CreateRsaKeyOptions setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
Overrides:
CreateRsaKeyOptions.setExportable(Boolean exportable)Parameters:
Returns:
setHardwareProtected
public CreateRsaKeyOptions setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not.
Parameters:
Returns:
setKeyOperations
public CreateRsaKeyOptions setKeyOperations(KeyOperation[] keyOperations)
Set the key operations.
Overrides:
CreateRsaKeyOptions.setKeyOperations(KeyOperation[] keyOperations)Parameters:
Returns:
setKeySize
public CreateRsaKeyOptions setKeySize(Integer keySize)
Set the key size in bits.
Parameters:
Returns:
setNotBefore
public CreateRsaKeyOptions setNotBefore(OffsetDateTime notBefore)
Set the notBefore UTC time.
Overrides:
CreateRsaKeyOptions.setNotBefore(OffsetDateTime notBefore)Parameters:
Returns:
setPublicExponent
public CreateRsaKeyOptions setPublicExponent(Integer publicExponent)
Set the public exponent for the key.
Parameters:
Returns:
setReleasePolicy
public CreateRsaKeyOptions setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
Overrides:
CreateRsaKeyOptions.setReleasePolicy(KeyReleasePolicy releasePolicy)Parameters:
Returns:
setTags
public CreateRsaKeyOptions setTags(Map
Set the tags to be associated with the key.
Overrides:
CreateRsaKeyOptions.setTags(Map<String,String> tags)Parameters:
Returns:
Applies to
Azure SDK for Java