Package org.xbill.DNS
Class OPENPGPKEYRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.OPENPGPKEYRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
OPENPGPKEY Record - Stores an OpenPGP certificate associated with a name.
- Author:
- Brian Wellington, Valentin Hauner
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionOPENPGPKEYRecord(Name name, int dclass, long ttl, byte[] cert) Creates an OPENPGPKEY Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getCert()Returns the binary representation of the certificateprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts rdata to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
OPENPGPKEYRecord
Creates an OPENPGPKEY Record from the given data- Parameters:
cert- Binary data representing the certificate
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
getCert
public byte[] getCert()Returns the binary representation of the certificate -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-