KeyRotationLifetimeAction Class
- java.
lang. Object - com.
azure. security. keyvault. keys. models. KeyRotationLifetimeAction
- com.
Implements
public final class KeyRotationLifetimeAction
implements JsonSerializable<KeyRotationLifetimeAction>
Represents an action that will be performed by Key Vault over the lifetime of a key.
Constructor Summary
Constructor | Description |
---|---|
KeyRotationLifetimeAction(KeyRotationPolicyAction action) |
Creates a KeyRotationLifetimeAction. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a KeyReleasePolicy. |
Key |
getAction()
Get the KeyRotationPolicyAction. |
String |
getTimeAfterCreate()
Get the time after creation to attempt to rotate in ISO 8601 duration format. |
String |
getTimeBeforeExpiry()
Get the time before expiry to attempt to rotate or notify in ISO 8601 duration format. |
Key |
setTimeAfterCreate(String timeAfterCreate)
Set the time after creation to attempt to rotate in ISO 8601 duration format. |
Key |
setTimeBeforeExpiry(String timeBeforeExpiry)
Set the time before expiry to attempt to rotate or notify in ISO 8601 duration format. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KeyRotationLifetimeAction
public KeyRotationLifetimeAction(KeyRotationPolicyAction action)
Creates a KeyRotationLifetimeAction.
Parameters:
Method Details
fromJson
public static KeyRotationLifetimeAction fromJson(JsonReader jsonReader)
Reads a JSON stream into a KeyReleasePolicy.
Parameters:
Returns:
Throws:
getAction
getTimeAfterCreate
public String 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:
getTimeBeforeExpiry
public String 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:
setTimeAfterCreate
public KeyRotationLifetimeAction setTimeAfterCreate(String timeAfterCreate)
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:
Returns:
setTimeBeforeExpiry
public KeyRotationLifetimeAction setTimeBeforeExpiry(String timeBeforeExpiry)
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:
Returns:
toJson
Applies to
Azure SDK for Java