public class ImportKeyOptions extends KeyProperties
Constructor and Description |
---|
ImportKeyOptions(String name,
JsonWebKey key)
Creates instance of
ImportKeyOptions . |
Modifier and Type | Method and Description |
---|---|
JsonWebKey |
getKey()
Get the key material of the key being imported.
|
Boolean |
isHardwareProtected()
Get the HSM value of the key being imported.
|
ImportKeyOptions |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
|
ImportKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
key expiration time in UTC. |
ImportKeyOptions |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being imported is of HSM type or not.
|
ImportKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
key's notBefore time in UTC. |
getCreatedOn, getExpiresOn, getId, getName, getNotBefore, getRecoverableDays, getRecoveryLevel, getTags, getUpdatedOn, getVersion, isEnabled, isManaged, setTags
public ImportKeyOptions(String name, JsonWebKey key)
ImportKeyOptions
.name
- The name of the key.key
- The key material to import.public ImportKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected
- The HSM value to set.ImportKeyOptions
object itself.public Boolean isHardwareProtected()
public ImportKeyOptions setEnabled(Boolean enabled)
setEnabled
in class KeyProperties
enabled
- The enabled value to set.ImportKeyOptions
object.public JsonWebKey getKey()
public ImportKeyOptions setExpiresOn(OffsetDateTime expiresOn)
key expiration time
in UTC.setExpiresOn
in class KeyProperties
expiresOn
- The key expiration time
in UTC.ImportKeyOptions
object.public ImportKeyOptions setNotBefore(OffsetDateTime notBefore)
key's notBefore time
in UTC.setNotBefore
in class KeyProperties
notBefore
- The key's notBefore time
in UTC.ImportKeyOptions
object.Copyright © 2021 Microsoft Corporation. All rights reserved.