ImportKeyOptions Class
- java.
lang. Object - com.
azure. security. keyvault. keys. models. KeyProperties - com.
azure. security. keyvault. keys. models. ImportKeyOptions
- com.
- com.
public class ImportKeyOptions
extends KeyProperties
Represents the configurable options to import a key.
Constructor Summary
Constructor | Description |
---|---|
ImportKeyOptions(String name, JsonWebKey key) |
Creates instance of ImportKeyOptions. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Json |
getKey()
Get the key material of the key being imported. |
Boolean |
isHardwareProtected()
Get the HSM value of the key being imported. |
Import |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled. |
Import |
setExpiresOn(OffsetDateTime expiresOn)
Set the key expiration time in UTC. |
Import |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being imported is of HSM type or not. |
Import |
setNotBefore(OffsetDateTime notBefore)
Set the key's notBefore time in UTC. |
Methods inherited from KeyProperties
Methods inherited from java.lang.Object
Constructor Details
ImportKeyOptions
public ImportKeyOptions(String name, JsonWebKey key)
Creates instance of ImportKeyOptions.
Parameters:
Method Details
getKey
public JsonWebKey getKey()
Get the key material of the key being imported.
Returns:
isHardwareProtected
public Boolean isHardwareProtected()
Get the HSM value of the key being imported.
Returns:
setEnabled
public ImportKeyOptions setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
Overrides:
ImportKeyOptions.setEnabled(Boolean enabled)Parameters:
Returns:
setExpiresOn
public ImportKeyOptions setExpiresOn(OffsetDateTime expiresOn)
Set the key expiration time in UTC.
Overrides:
ImportKeyOptions.setExpiresOn(OffsetDateTime expiresOn)Parameters:
Returns:
setHardwareProtected
public ImportKeyOptions setHardwareProtected(Boolean hardwareProtected)
Set whether the key being imported is of HSM type or not.
Parameters:
Returns:
setNotBefore
public ImportKeyOptions setNotBefore(OffsetDateTime notBefore)
Set the key's notBefore time in UTC.
Overrides:
ImportKeyOptions.setNotBefore(OffsetDateTime notBefore)Parameters:
Returns:
Applies to
Azure SDK for Java