Class RotationPolicy
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.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.GenericModelThis 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRotationPolicy.UnitThe units for the secret rotation time interval.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanautoRotate()Gets the autoRotate.Longinterval()Gets the interval.BooleanrotateKeys()Gets the rotateKeys.Stringunit()Gets the unit.
-
-
-
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
-
-