Class KeyRotationLifetimeAction

java.lang.Object
com.azure.security.keyvault.keys.models.KeyRotationLifetimeAction

public final class KeyRotationLifetimeAction extends Object
Represents an action that will be performed by Key Vault over the lifetime of a key.
  • Constructor Details

  • Method Details

    • getAction

      public KeyRotationPolicyAction getAction()
      Get the policy action.
      Returns:
      The policy action.
    • 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:
      The time after creation to attempt to rotate in ISO duration format.
    • 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:
      timeAfterCreate - The time after creation to attempt to rotate in ISO duration format.
      Returns:
      The updated KeyRotationLifetimeAction object.
    • 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:
      The time before expiry to attempt to rotate or notify in ISO duration format.
    • 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:
      timeBeforeExpiry - The time before expiry to attempt to rotate or notify in ISO duration format.
      Returns:
      The updated KeyRotationLifetimeAction object.