Class KeyRotationPolicyProperties

  • Direct Known Subclasses:
    KeyRotationPolicy

    public class KeyRotationPolicyProperties
    extends Object
    The properties of a key rotation policy that the client can set for a given key. You may also reset the key rotation policy to its default values by setting lifetimeActions to an empty array.
    See Also:
    KeyRotationPolicy
    • Constructor Detail

      • KeyRotationPolicyProperties

        public KeyRotationPolicyProperties()
    • Method Detail

      • getExpiryTime

        public String getExpiryTime()
        Get the optional key expiration period used to define the duration after which a newly rotated key will expire. It should be defined as an ISO 8601 duration. For example, 90 days would be formatted as follows: "P90D", 3 months would be "P3M", 48 hours would be "PT48H" and 1 year and 10 days would be "P1Y10D".
        Returns:
        The expiry time in ISO 8601 format.
      • setExpiryTime

        public KeyRotationPolicyProperties setExpiryTime​(String expiryTime)
        Set the optional key expiration period used to define the duration after which a newly rotated key will expire. It should be defined as an ISO 8601 duration. For example, 90 days would be formatted as follows: "P90D", 3 months would be "P3M", 48 hours would be "PT48H" and 1 year and 10 days would be "P1Y10D".
        Parameters:
        expiryTime - The expiry time to set in ISO 8601 format.
        Returns:
        The updated KeyRotationPolicyProperties object.
      • getLifetimeActions

        public List<KeyRotationLifetimeAction> getLifetimeActions()
        Get the actions that will be performed by Key Vault over the lifetime of a key.

        You may also pass an empty array to restore to its default values.

        Returns:
        The actions in this policy.