CreateKeyOptions Class
- java.
lang. Object - com.
azure. security. keyvault. keys. models. CreateKeyOptions
- com.
public class CreateKeyOptions
Represents the configurable options to create a key.
Constructor Summary
Constructor | Description |
---|---|
CreateKeyOptions(String name, KeyType keyType) |
Creates instance of CreateKeyOptions with |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
getExpiresOn()
Get the key expiration time in UTC. |
List<Key |
getKeyOperations()
Get the key operations. |
Key |
getKeyType()
Get the key type. |
String |
getName()
Get the key name. |
Offset |
getNotBefore()
Get the key's notBefore time in UTC. |
Key |
getReleasePolicy()
Get the policy rules under which the key can be exported. |
Map<String,String> |
getTags()
Get the tags associated with the key. |
Boolean |
isEnabled()
Get the enabled value. |
Boolean |
isExportable()
Get a flag that indicates if the private key can be exported. |
Create |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled. |
Create |
setExpiresOn(OffsetDateTime expiresOn)
Set the key expiration time in UTC. |
Create |
setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported. |
Create |
setKeyOperations(KeyOperation[] keyOperations)
Set the key operations. |
Create |
setNotBefore(OffsetDateTime notBefore)
Set the key's notBefore time in UTC. |
Create |
setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported. |
Create |
setTags(Map<String,String> tags)
Set the tags to be associated with the key. |
Methods inherited from java.lang.Object
Constructor Details
CreateKeyOptions
public CreateKeyOptions(String name, KeyType keyType)
Creates instance of CreateKeyOptions with name
as key name and keyType
as type of the key.
Parameters:
Method Details
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the key expiration time in UTC.
Returns:
getKeyOperations
public List
Get the key operations.
Returns:
getKeyType
public KeyType getKeyType()
Get the key type.
Returns:
getName
public String getName()
Get the key name.
Returns:
getNotBefore
public OffsetDateTime getNotBefore()
Get the key's notBefore time in UTC.
Returns:
getReleasePolicy
public KeyReleasePolicy getReleasePolicy()
Get the policy rules under which the key can be exported.
Returns:
getTags
public Map
Get the tags associated with the key.
Returns:
isEnabled
public Boolean isEnabled()
Get the enabled value.
Returns:
isExportable
public Boolean isExportable()
Get a flag that indicates if the private key can be exported.
Returns:
setEnabled
public CreateKeyOptions setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
Parameters:
Returns:
setExpiresOn
public CreateKeyOptions setExpiresOn(OffsetDateTime expiresOn)
Set the key expiration time in UTC.
Parameters:
Returns:
setExportable
public CreateKeyOptions setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
Parameters:
Returns:
setKeyOperations
public CreateKeyOptions setKeyOperations(KeyOperation[] keyOperations)
Set the key operations.
Parameters:
Returns:
setNotBefore
public CreateKeyOptions setNotBefore(OffsetDateTime notBefore)
Set the key's notBefore time in UTC.
Parameters:
Returns:
setReleasePolicy
public CreateKeyOptions setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
Parameters:
Returns:
setTags
public CreateKeyOptions setTags(Map
Set the tags to be associated with the key.
Parameters:
Returns:
Applies to
Azure SDK for Java