// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)

package org.xbill.DNS;

import java.util.List;

/**
 * Sender Policy Framework (discontinued in RFC 7208)
 *
 * @author Brian Wellington
 * @see <a href="https://datatracker.ietf.org/doc/html/rfc7208">RFC 7208: Sender Policy Framework
 *     (SPF) for Authorizing Use of Domains in Email, Version 1</a>
 */
public class SPFRecord extends TXTBase {
  SPFRecord() {}

  /**
   * Creates a SPF Record from the given data
   *
   * @param strings The text strings
   * @throws IllegalArgumentException One of the strings has invalid escapes
   */
  public SPFRecord(Name name, int dclass, long ttl, List<String> strings) {
    super(name, Type.SPF, dclass, ttl, strings);
  }

  /**
   * Creates a SPF Record from the given data
   *
   * @param string One text string
   * @throws IllegalArgumentException The string has invalid escapes
   */
  public SPFRecord(Name name, int dclass, long ttl, String string) {
    super(name, Type.SPF, dclass, ttl, string);
  }
}
