Package org.minidns.record
Class TLSA
java.lang.Object
org.minidns.record.Data
org.minidns.record.TLSA
public class TLSA extends Data
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TLSA.CertUsage
static class
TLSA.MatchingType
static class
TLSA.Selector
-
Field Summary
Fields Modifier and Type Field Description TLSA.CertUsage
certUsage
byte
certUsageByte
The provided association that will be used to match the certificate presented in the TLS handshake.TLSA.MatchingType
matchingType
byte
matchingTypeByte
How the certificate association is presented.TLSA.Selector
selector
byte
selectorByte
Which part of the TLS certificate presented by the server will be matched against the association data. -
Constructor Summary
Constructors Constructor Description TLSA(byte certUsageByte, byte selectorByte, byte matchingTypeByte, byte[] certificateAssociation)
-
Method Summary
Modifier and Type Method Description boolean
certificateAssociationEquals(byte[] otherCertificateAssociation)
byte[]
getCertificateAssociation()
Record.TYPE
getType()
The payload type.static TLSA
parse(DataInputStream dis, int length)
void
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.String
toString()
Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
Field Details
-
certUsageByte
public final byte certUsageByteThe provided association that will be used to match the certificate presented in the TLS handshake. -
certUsage
-
selectorByte
public final byte selectorByteWhich part of the TLS certificate presented by the server will be matched against the association data. -
selector
-
matchingTypeByte
public final byte matchingTypeByteHow the certificate association is presented. -
matchingType
-
-
Constructor Details
-
TLSA
TLSA(byte certUsageByte, byte selectorByte, byte matchingTypeByte, byte[] certificateAssociation)
-
-
Method Details
-
parse
- Throws:
IOException
-
getType
Description copied from class:Data
The payload type. -
serialize
Description copied from class:Data
The internal method used to serialize Data subclasses.- Specified by:
serialize
in classData
- Parameters:
dos
- the output stream to serialize to.- Throws:
IOException
- if an I/O error occurs.
-
toString
-
getCertificateAssociation
public byte[] getCertificateAssociation() -
certificateAssociationEquals
public boolean certificateAssociationEquals(byte[] otherCertificateAssociation)
-