public class CreateKeyOptions extends Object
Constructor and Description |
---|
CreateKeyOptions(String name,
KeyType keyType)
Creates instance of KeyCreateOptions with
name as key name and keyType as type of the key. |
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
getExpiresOn()
Get the Key Expiry 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 notBefore UTC time.
|
Map<String,String> |
getTags()
Get the tags associated with the key.
|
Boolean |
isEnabled()
Get the enabled value.
|
CreateKeyOptions |
setEnabled(Boolean enabled)
Set the enabled value.
|
CreateKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
CreateKeyOptions |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations value.
|
CreateKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
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 value to setpublic KeyType getKeyType()
public CreateKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.notBefore
- The notBefore UTC time to setpublic OffsetDateTime getNotBefore()
public CreateKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.expiresOn
- The expiry time to set for the key.public OffsetDateTime getExpiresOn()
public CreateKeyOptions setTags(Map<String,String> tags)
tags
- The tags to setpublic Map<String,String> getTags()
public CreateKeyOptions setEnabled(Boolean enabled)
enabled
- The enabled value to setpublic Boolean isEnabled()
public String getName()
Copyright © 2020 Microsoft Corporation. All rights reserved.