Package org.xbill.DNS
Class DNSKEYRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.KEYBase
org.xbill.DNS.DNSKEYRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
- Direct Known Subclasses:
CDNSKEYRecord
Key - contains a cryptographic public key for use by DNS. The data can be converted to objects
implementing java.security.interfaces.PublicKey
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDNSKEYflags as defined in the IANA registry.static class -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)protectedDNSKEYRecord(Name name, int type, int dclass, long ttl, int flags, int proto, int alg, byte[] key) Creates a DNSKEY Record from the given dataDNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, byte[] key) Creates a DNSKEY Record from the given dataDNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, PublicKey key) Creates a DNSKEY Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenMethods inherited from class org.xbill.DNS.KEYBase
getAlgorithm, getFlags, getFootprint, getKey, getProtocol, getPublicKey, rrFromWire, rrToString, rrToWireMethods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
-
Constructor Details
-
DNSKEYRecord
DNSKEYRecord() -
DNSKEYRecord
protected DNSKEYRecord(Name name, int type, int dclass, long ttl, int flags, int proto, int alg, byte[] key) Creates a DNSKEY Record from the given data- Parameters:
flags- Flags describing the key's propertiesproto- The protocol that the key was created foralg- The key's algorithmkey- Binary representation of the key
-
DNSKEYRecord
Creates a DNSKEY Record from the given data- Parameters:
flags- Flags describing the key's propertiesproto- The protocol that the key was created foralg- The key's algorithmkey- Binary representation of the key
-
DNSKEYRecord
public DNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, PublicKey key) throws DNSSEC.DNSSECException Creates a DNSKEY Record from the given data- Parameters:
flags- Flags describing the key's propertiesproto- The protocol that the key was created foralg- The key's algorithmkey- The key as a PublicKey- Throws:
DNSSEC.DNSSECException- The PublicKey could not be converted into DNS format.
-
-
Method Details
-
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
-