Home | History | Annotate | Download | only in DNS
      1 // Copyright (c) 1999-2004 Brian Wellington (bwelling (at) xbill.org)
      2 
      3 package org.xbill.DNS;
      4 
      5 import java.util.*;
      6 
      7 /**
      8  * Sender Policy Framework (RFC 4408, experimental)
      9  *
     10  * @author Brian Wellington
     11  */
     12 
     13 public class SPFRecord extends TXTBase {
     14 
     15 private static final long serialVersionUID = -2100754352801658722L;
     16 
     17 SPFRecord() {}
     18 
     19 Record
     20 getObject() {
     21 	return new SPFRecord();
     22 }
     23 
     24 /**
     25  * Creates a SPF Record from the given data
     26  * @param strings The text strings
     27  * @throws IllegalArgumentException One of the strings has invalid escapes
     28  */
     29 public
     30 SPFRecord(Name name, int dclass, long ttl, List strings) {
     31 	super(name, Type.SPF, dclass, ttl, strings);
     32 }
     33 
     34 /**
     35  * Creates a SPF Record from the given data
     36  * @param string One text string
     37  * @throws IllegalArgumentException The string has invalid escapes
     38  */
     39 public
     40 SPFRecord(Name name, int dclass, long ttl, String string) {
     41 	super(name, Type.SPF, dclass, ttl, string);
     42 }
     43 
     44 }
     45