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 classTLSA.CertUsagestatic classTLSA.MatchingTypestatic classTLSA.Selector
-
Field Summary
Fields Modifier and Type Field Description TLSA.CertUsagecertUsagebytecertUsageByteThe provided association that will be used to match the certificate presented in the TLS handshake.TLSA.MatchingTypematchingTypebytematchingTypeByteHow the certificate association is presented.TLSA.SelectorselectorbyteselectorByteWhich 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancertificateAssociationEquals(byte[] otherCertificateAssociation)byte[]getCertificateAssociation()Record.TYPEgetType()The payload type.static TLSAparse(DataInputStream dis, int length)voidserialize(DataOutputStream dos)The internal method used to serialize Data subclasses.StringtoString()-
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(DataInputStream dis, int length) throws IOException
- Throws:
IOException
-
getType
public Record.TYPE getType()
Description copied from class:DataThe payload type.
-
serialize
public void serialize(DataOutputStream dos) throws IOException
Description copied from class:DataThe internal method used to serialize Data subclasses.- Specified by:
serializein classData- Parameters:
dos- the output stream to serialize to.- Throws:
IOException- if an I/O error occurs.
-
getCertificateAssociation
public byte[] getCertificateAssociation()
-
certificateAssociationEquals
public boolean certificateAssociationEquals(byte[] otherCertificateAssociation)
-
-