Package org.xbill.DNS
Class KEYRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.KEYBase
org.xbill.DNS.KEYRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Key - contains a cryptographic public key. The data can be converted to objects implementing
java.security.interfaces.PublicKey
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classKEY flags identifiers.static classKEY protocol identifiers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis key cannot be used for authenticationstatic final intThis key cannot be used for confidentiality (encryption)static final intThis key cannot be used for authentication or confidentialitystatic final intA host/end entity keystatic final intA user keystatic final intA zone keystatic final intKey was created for use with any protocolstatic final intKey was created for use with DNSSECstatic final intKey was created for use with emailstatic final intKey was created for use with IPSECstatic final intKey was created for use with transaction level security -
Constructor Summary
Constructors -
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
-
Field Details
-
FLAG_NOCONF
public static final int FLAG_NOCONFThis key cannot be used for confidentiality (encryption)- See Also:
-
FLAG_NOAUTH
public static final int FLAG_NOAUTHThis key cannot be used for authentication- See Also:
-
FLAG_NOKEY
public static final int FLAG_NOKEYThis key cannot be used for authentication or confidentiality- See Also:
-
OWNER_ZONE
public static final int OWNER_ZONEA zone key- See Also:
-
OWNER_HOST
public static final int OWNER_HOSTA host/end entity key- See Also:
-
OWNER_USER
public static final int OWNER_USERA user key- See Also:
-
PROTOCOL_TLS
public static final int PROTOCOL_TLSKey was created for use with transaction level security- See Also:
-
PROTOCOL_EMAIL
public static final int PROTOCOL_EMAILKey was created for use with email- See Also:
-
PROTOCOL_DNSSEC
public static final int PROTOCOL_DNSSECKey was created for use with DNSSEC- See Also:
-
PROTOCOL_IPSEC
public static final int PROTOCOL_IPSECKey was created for use with IPSEC- See Also:
-
PROTOCOL_ANY
public static final int PROTOCOL_ANYKey was created for use with any protocol- See Also:
-
-
Constructor Details
-
KEYRecord
KEYRecord() -
KEYRecord
Creates a KEY 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 data representing the key
-
KEYRecord
public KEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, PublicKey key) throws DNSSEC.DNSSECException Creates a KEY 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
-