Class KeyRotationLifetimeAction
java.lang.Object
com.azure.security.keyvault.keys.models.KeyRotationLifetimeAction
Represents an action that will be performed by Key Vault over the lifetime of a key.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet thepolicy action
.Get the time after creation to attempt to rotate in ISO 8601 duration format.Get the time before expiry to attempt to rotate or notify in ISO 8601 duration format.setTimeAfterCreate
(String timeAfterCreate) Set the time after creation to attempt to rotate in ISO 8601 duration format.setTimeBeforeExpiry
(String timeBeforeExpiry) Set the time before expiry to attempt to rotate or notify in ISO 8601 duration format.
-
Constructor Details
-
KeyRotationLifetimeAction
Creates aKeyRotationLifetimeAction
.- Parameters:
action
- Thepolicy action
.
-
-
Method Details
-
getAction
Get thepolicy action
.- Returns:
- The
policy action
.
-
getTimeAfterCreate
Get the time after creation to attempt to rotate in ISO 8601 duration format. For example, 90 days would be "P90D", 3 months would be "P3M" and 1 year and 10 days would be "P1Y10D". See Wikipedia for more information on ISO 8601 durations.- Returns:
- The time after creation to attempt to rotate in ISO duration format.
-
setTimeAfterCreate
Set the time after creation to attempt to rotate in ISO 8601 duration format. For example, 90 days would be "P90D", 3 months would be "P3M" and 1 year and 10 days would be "P1Y10D". See Wikipedia for more information on ISO 8601 durations.- Parameters:
timeAfterCreate
- The time after creation to attempt to rotate in ISO duration format.- Returns:
- The updated
KeyRotationLifetimeAction
object.
-
getTimeBeforeExpiry
Get the time before expiry to attempt to rotate or notify in ISO 8601 duration format. For example, 90 days would be "P90D", 3 months would be "P3M" and 1 year and 10 days would be "P1Y10D". See Wikipedia for more information on ISO 8601 durations.- Returns:
- The time before expiry to attempt to rotate or notify in ISO duration format.
-
setTimeBeforeExpiry
Set the time before expiry to attempt to rotate or notify in ISO 8601 duration format. For example, 90 days would be "P90D", 3 months would be "P3M" and 1 year and 10 days would be "P1Y10D". See Wikipedia for more information on ISO 8601 durations.- Parameters:
timeBeforeExpiry
- The time before expiry to attempt to rotate or notify in ISO duration format.- Returns:
- The updated
KeyRotationLifetimeAction
object.
-