Package org.xbill.DNS
Class TLSARecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.TLSARecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
- Direct Known Subclasses:
SMIMEARecord
Transport Layer Security Authentication
- Author:
- Brian Wellington
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTLSARecord(Name name, int type, int dclass, long ttl, int certificateUsage, int selector, int matchingType, byte[] certificateAssociationData) Creates an TLSA Record from the given dataTLSARecord(Name name, int dclass, long ttl, int certificateUsage, int selector, int matchingType, byte[] certificateAssociationData) Creates an TLSA Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionfinal byte[]Returns the certificate associate data of this TLSA recordintReturns the certificate usage of the TLSA recordintReturns the matching type of the TLSA recordintReturns the selector of the TLSA recordprotected 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
-
TLSARecord
protected TLSARecord(Name name, int type, int dclass, long ttl, int certificateUsage, int selector, int matchingType, byte[] certificateAssociationData) Creates an TLSA Record from the given data- Parameters:
certificateUsage- The provided association that will be used to match the certificate presented in the TLS handshake.selector- The part of the TLS certificate presented by the server that will be matched against the association data.matchingType- How the certificate association is presented.certificateAssociationData- The "certificate association data" to be matched.
-
TLSARecord
public TLSARecord(Name name, int dclass, long ttl, int certificateUsage, int selector, int matchingType, byte[] certificateAssociationData) Creates an TLSA Record from the given data- Parameters:
certificateUsage- The provided association that will be used to match the certificate presented in the TLS handshake.selector- The part of the TLS certificate presented by the server that will be matched against the association data.matchingType- How the certificate association is presented.certificateAssociationData- The "certificate association data" to be matched.
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
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
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden. -
getCertificateUsage
public int getCertificateUsage()Returns the certificate usage of the TLSA record -
getSelector
public int getSelector()Returns the selector of the TLSA record -
getMatchingType
public int getMatchingType()Returns the matching type of the TLSA record -
getCertificateAssociationData
public final byte[] getCertificateAssociationData()Returns the certificate associate data of this TLSA record
-