/*
 * (c) 2021 Pluto Inc.
 */
package tv.pluto.mongo.entities.clips;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EncryptionParams {
  private String schema;
  private Integer rotationInterval;
  private String keyFileName;

  public Integer getRotationInterval() {
    return rotationInterval == null ? 0 : rotationInterval;
  }

  public String getSchema() {
    return schema == null ? "" : schema;
  }

  public String getKeyFileName() {
    return keyFileName == null ? "" : keyFileName;
  }
}
