public class ImportKeyOptions extends KeyProperties
Constructor and Description |
---|
ImportKeyOptions(String name,
JsonWebKey key)
Creates instance of KeyImportOptions.
|
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 the enabled value.
|
ImportKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
ImportKeyOptions |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being imported is of hsm type or not.
|
ImportKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
getCreatedOn, getExpiresOn, getId, getName, getNotBefore, getRecoverableDays, getRecoveryLevel, getTags, getUpdatedOn, getVersion, isEnabled, isManaged, setTags
public ImportKeyOptions(String name, JsonWebKey key)
name
- The name of the key.key
- The key material to import.public ImportKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected
- The hsm value to set.public Boolean isHardwareProtected()
public ImportKeyOptions setEnabled(Boolean enabled)
setEnabled
in class KeyProperties
enabled
- The enabled value to setpublic JsonWebKey getKey()
public ImportKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.setExpiresOn
in class KeyProperties
expiresOn
- The expiry time to set for the key.public ImportKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.setNotBefore
in class KeyProperties
notBefore
- The notBefore UTC time to setCopyright © 2020 Microsoft Corporation. All rights reserved.