public class CreateKeyOptions extends Object
Constructor and Description |
---|
CreateKeyOptions(String name,
KeyType keyType)
|
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
getExpiresOn()
Get the
key expiration time in UTC. |
List<KeyOperation> |
getKeyOperations()
Get the key operations.
|
KeyType |
getKeyType()
Get the key type.
|
String |
getName()
Get the key name.
|
OffsetDateTime |
getNotBefore()
Get the
key's notBefore time in UTC. |
KeyReleasePolicy |
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.
|
CreateKeyOptions |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
|
CreateKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
key expiration time in UTC. |
CreateKeyOptions |
setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
|
CreateKeyOptions |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations.
|
CreateKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
key's notBefore time in UTC. |
CreateKeyOptions |
setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
|
CreateKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
public String getName()
public KeyType getKeyType()
public List<KeyOperation> getKeyOperations()
public CreateKeyOptions setKeyOperations(KeyOperation... keyOperations)
keyOperations
- The key operations to set.CreateKeyOptions
object.public OffsetDateTime getNotBefore()
key's notBefore time
in UTC.key's notBefore time
in UTC.public CreateKeyOptions setNotBefore(OffsetDateTime notBefore)
key's notBefore time
in UTC.notBefore
- The key's notBefore time
in UTC.CreateKeyOptions
object.public OffsetDateTime getExpiresOn()
key expiration time
in UTC.key expiration time
in UTC.public CreateKeyOptions setExpiresOn(OffsetDateTime expiresOn)
key expiration time
in UTC.expiresOn
- The key expiration time
in UTC.CreateKeyOptions
object.public Map<String,String> getTags()
public CreateKeyOptions setTags(Map<String,String> tags)
tags
- The tags to set.CreateKeyOptions
object.public Boolean isEnabled()
public CreateKeyOptions setEnabled(Boolean enabled)
enabled
- The enabled value to set.CreateKeyOptions
object.public Boolean isExportable()
public CreateKeyOptions setExportable(Boolean exportable)
exportable
- A flag that indicates if the private key can be exported.CreateKeyOptions
object.public KeyReleasePolicy getReleasePolicy()
public CreateKeyOptions setReleasePolicy(KeyReleasePolicy releasePolicy)
releasePolicy
- The policy rules to set.CreateKeyOptions
object.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.