public class TLSARecord extends Record
Modifier and Type | Class and Description |
---|---|
static class |
TLSARecord.CertificateUsage |
static class |
TLSARecord.MatchingType |
static class |
TLSARecord.Selector |
Modifier and Type | Field and Description |
---|---|
private byte[] |
certificateAssociationData |
private int |
certificateUsage |
private int |
matchingType |
private int |
selector |
Modifier | Constructor and Description |
---|---|
(package private) |
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
|
|
TLSARecord(Name name,
int dclass,
long ttl,
int certificateUsage,
int selector,
int matchingType,
byte[] certificateAssociationData)
Creates an TLSA Record from the given data
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getCertificateAssociationData()
Returns the certificate associate data of this TLSA record
|
int |
getCertificateUsage()
Returns the certificate usage of the TLSA record
|
int |
getMatchingType()
Returns the matching type of the TLSA record
|
int |
getSelector()
Returns the selector of the TLSA record
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected java.lang.String |
rrToString()
Converts rdata to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
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
private int certificateUsage
private int selector
private int matchingType
private byte[] certificateAssociationData
TLSARecord()
protected TLSARecord(Name name, int type, int dclass, long ttl, int certificateUsage, int selector, int matchingType, byte[] certificateAssociationData)
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.public TLSARecord(Name name, int dclass, long ttl, int certificateUsage, int selector, int matchingType, byte[] certificateAssociationData)
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.protected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
protected java.lang.String rrToString()
rrToString
in class Record
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
public int getCertificateUsage()
public int getSelector()
public int getMatchingType()
public final byte[] getCertificateAssociationData()