|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDNS.ResourceRecord
Data structure to represent a Resource Record. Has many fields, but only certain fields are used for certain types.
| Field Summary | |
long |
expires
When this record expires (-1 for never) |
SerializableDSAPublicKey |
key
The public key of this zone |
java.lang.String |
name
The name field of A, NX, NS, KEY, SIG, NXT and SOA records |
java.lang.String |
nameCovered
The name of the Record that this SIG record corresponds to |
java.lang.String |
next
The name of the next RRGroup covered |
DSASignature |
signature
The actual signature |
java.lang.String |
signer
The name of the entity that signed this zone |
java.lang.String |
type
The type of this RR (one of SOA, A, NS, NXT, KEY, SIG, (NX)) |
java.lang.String |
typeCovered
The type of the Record that this SIG record corresponds to |
SerializableArrayList |
types
The types in the RRGroup holding this RR |
java.lang.String |
value
The string representation of the ip (or delegate name server) |
| Constructor Summary | |
ResourceRecord()
|
|
ResourceRecord(java.lang.String type,
java.lang.String name,
long duration)
|
|
| Method Summary | |
ResourceRecord |
cache()
Basically clone this item, copy all fields. |
ResourceRecord |
cache(int duration)
Basically clone this item, copy all fields, update the expiration time to be duration ms from now. |
boolean |
equals(java.lang.Object o)
|
boolean |
isA()
|
boolean |
isExpired()
Returns if this record is expired. |
boolean |
isKEY()
|
boolean |
isNS()
|
boolean |
isNX()
|
boolean |
isNXT()
|
boolean |
isSIG()
|
boolean |
isSOA()
|
void |
makeARecord(java.lang.String value)
Add the value field to an RR. |
void |
makeKEYRecord(DSAPublicKeyParameters key)
Add the key record to a KEY record. |
void |
makeNSRecord(java.lang.String value)
Add the value field to an RR. |
void |
makeNXTRecord(java.lang.String next,
java.util.ArrayList types)
Add the next and types field to a NXT record. |
void |
makeSIGRecord(java.lang.String typeCovered,
java.lang.String nameCovered,
java.lang.String signer,
DSASignature signature)
Add the typeCovered, nameCovered, signer
and signature fields to a SIG record. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String type
public long expires
public java.lang.String name
public java.lang.String value
public java.lang.String next
public SerializableArrayList types
public SerializableDSAPublicKey key
public java.lang.String nameCovered
public java.lang.String typeCovered
public java.lang.String signer
public DSASignature signature
| Constructor Detail |
public ResourceRecord()
public ResourceRecord(java.lang.String type,
java.lang.String name,
long duration)
| Method Detail |
public ResourceRecord cache()
public boolean equals(java.lang.Object o)
public ResourceRecord cache(int duration)
duration ms from now.
public boolean isExpired()
public java.lang.String toString()
public void makeARecord(java.lang.String value)
value field to an RR.
public void makeNSRecord(java.lang.String value)
value field to an RR.
public void makeNXTRecord(java.lang.String next,
java.util.ArrayList types)
next and types field to a NXT record.
public void makeSIGRecord(java.lang.String typeCovered,
java.lang.String nameCovered,
java.lang.String signer,
DSASignature signature)
typeCovered, nameCovered, signer
and signature fields to a SIG record.
public void makeKEYRecord(DSAPublicKeyParameters key)
key record to a KEY record.
public boolean isSOA()
public boolean isNXT()
public boolean isNS()
public boolean isNX()
public boolean isA()
public boolean isSIG()
public boolean isKEY()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||