01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: import java.io.*;
06: import java.util.*;
07:
08: /**
09: * Sender Policy Framework (RFC 4408, experimental)
10: *
11: * @author Brian Wellington
12: */
13:
14: public class SPFRecord extends TXTBase {
15:
16: SPFRecord() {
17: }
18:
19: Record getObject() {
20: return new SPFRecord();
21: }
22:
23: /**
24: * Creates a SPF Record from the given data
25: * @param strings The text strings
26: * @throws IllegalArgumentException One of the strings has invalid escapes
27: */
28: public SPFRecord(Name name, int dclass, long ttl, List strings) {
29: super (name, Type.SPF, dclass, ttl, strings);
30: }
31:
32: /**
33: * Creates a SPF Record from the given data
34: * @param string One text string
35: * @throws IllegalArgumentException The string has invalid escapes
36: */
37: public SPFRecord(Name name, int dclass, long ttl, String string) {
38: super(name, Type.SPF, dclass, ttl, string);
39: }
40:
41: }
|