Package org.minidns.record
Class TLSA
- java.lang.Object
-
- org.minidns.record.Data
-
- org.minidns.record.TLSA
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TLSA.CertUsage
The certificate usage field.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
certificateAssociationEquals(byte[] otherCertificateAssociation)
byte[]
getCertificateAssociation()
Record.TYPE
getType()
The payload type.static TLSA
parse(java.io.DataInputStream dis, int length)
void
serialize(java.io.DataOutputStream dos)
The internal method used to serialize Data subclasses.java.lang.String
toString()
-
Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
-
-
-
Field Detail
-
certUsageByte
public final byte certUsageByte
The provided association that will be used to match the certificate presented in the TLS handshake.
-
certUsage
public final TLSA.CertUsage certUsage
-
selectorByte
public final byte selectorByte
Which part of the TLS certificate presented by the server will be matched against the association data.
-
selector
public final TLSA.Selector selector
-
matchingTypeByte
public final byte matchingTypeByte
How the certificate association is presented.
-
matchingType
public final TLSA.MatchingType matchingType
-
-
Method Detail
-
parse
public static TLSA parse(java.io.DataInputStream dis, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getType
public Record.TYPE getType()
Description copied from class:Data
The payload type.
-
serialize
public void serialize(java.io.DataOutputStream dos) throws java.io.IOException
Description copied from class:Data
The internal method used to serialize Data subclasses.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCertificateAssociation
public byte[] getCertificateAssociation()
-
certificateAssociationEquals
public boolean certificateAssociationEquals(byte[] otherCertificateAssociation)
-
-