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. |
Map<String,String> |
getTags()
Get the tags associated with the key.
|
Boolean |
isEnabled()
Get the enabled value.
|
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 |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations.
|
CreateKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
key's notBefore time in UTC. |
CreateKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
public List<KeyOperation> getKeyOperations()
public CreateKeyOptions setKeyOperations(KeyOperation... keyOperations)
keyOperations
- The key operations to set.CreateKeyOptions
object.public KeyType getKeyType()
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 String getName()
Copyright © 2021 Microsoft Corporation. All rights reserved.