public class KeyCreateOptions extends Object
| Constructor and Description |
|---|
KeyCreateOptions(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 |
getExpires()
Get the Key Expiry time in UTC.
|
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.
|
List<KeyOperation> |
keyOperations()
Get the key operations.
|
KeyCreateOptions |
setEnabled(Boolean enabled)
Set the enabled value.
|
KeyCreateOptions |
setExpires(OffsetDateTime expires)
Set the
expires UTC time. |
KeyCreateOptions |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations value.
|
KeyCreateOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
KeyCreateOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
public List<KeyOperation> keyOperations()
public KeyCreateOptions setKeyOperations(KeyOperation... keyOperations)
keyOperations - The key operations value to setpublic KeyType getKeyType()
public KeyCreateOptions setNotBefore(OffsetDateTime notBefore)
notBefore UTC time.notBefore - The notBefore UTC time to setpublic OffsetDateTime getNotBefore()
public KeyCreateOptions setExpires(OffsetDateTime expires)
expires UTC time.expires - The expiry time to set for the key.public OffsetDateTime getExpires()
public KeyCreateOptions setTags(Map<String,String> tags)
tags - The tags to setpublic Map<String,String> getTags()
public KeyCreateOptions setEnabled(Boolean enabled)
enabled - The enabled value to setpublic Boolean isEnabled()
public String getName()
Copyright © 2019 Microsoft Corporation. All rights reserved.