Class RotationPolicy

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel
    Direct Known Subclasses:
    CommonRotationPolicy, PublicCertificateRotationPolicy

    public class RotationPolicy
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    This field indicates whether Secrets Manager rotates your secrets automatically. Supported secret types: username_password, private_cert, public_cert, iam_credentials, custom_credentials. Classes which extend this class: - CommonRotationPolicy - PublicCertificateRotationPolicy
    • Method Detail

      • autoRotate

        public Boolean autoRotate()
        Gets the autoRotate. This field indicates whether Secrets Manager rotates your secret automatically. The default is `false`. If `auto_rotate` is set to `true` the service rotates your secret based on the defined interval.
        Returns:
        the autoRotate
      • interval

        public Long interval()
        Gets the interval. The length of the secret rotation time interval.
        Returns:
        the interval
      • unit

        public String unit()
        Gets the unit. The units for the secret rotation time interval.
        Returns:
        the unit
      • rotateKeys

        public Boolean rotateKeys()
        Gets the rotateKeys. This field indicates whether Secrets Manager rotates the private key for your public certificate automatically. The default is `false`. If it is set to `true`, the service generates and stores a new private key for your rotated certificate.
        Returns:
        the rotateKeys