Class KeyRotationPolicy

    • Method Detail

      • getId

        public String getId()
        Get the identifier of the policy.

        May be undefined if a policy has not been explicitly set.

        Returns:
        The identifier of the policy.
      • getCreatedOn

        public OffsetDateTime getCreatedOn()
        Get the policy's created time in UTC.

        May be undefined if a policy has not been explicitly set.

        Returns:
        The policy's created time in UTC.
      • getUpdatedOn

        public OffsetDateTime getUpdatedOn()
        Get the policy's last updated time in UTC.

        May be undefined if a policy has not been explicitly set.

        Returns:
        The policy's last updated time in UTC.
      • setExpiryTime

        public KeyRotationPolicy 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".
        Overrides:
        setExpiryTime in class KeyRotationPolicyProperties
        Parameters:
        expiryTime - The expiry time to set in ISO 8601 format.
        Returns:
        The updated KeyRotationPolicy object.