public class TLSA extends Data
| Modifier and Type | Class and Description |
|---|---|
static class |
TLSA.CertUsage |
static class |
TLSA.MatchingType |
static class |
TLSA.Selector |
| Modifier and Type | Field and 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 and Description |
|---|
TLSA(byte certUsageByte,
byte selectorByte,
byte matchingTypeByte,
byte[] certificateAssociation) |
| Modifier and Type | Method and 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() |
equals, hashCode, length, toByteArray, toOutputStream, toOutputStreampublic final TLSA.CertUsage certUsage
public final byte certUsageByte
public final TLSA.MatchingType matchingType
public final byte matchingTypeByte
public final TLSA.Selector selector
public final byte selectorByte
TLSA(byte certUsageByte,
byte selectorByte,
byte matchingTypeByte,
byte[] certificateAssociation)
public boolean certificateAssociationEquals(byte[] otherCertificateAssociation)
public byte[] getCertificateAssociation()
public Record.TYPE getType()
Datapublic static TLSA parse(DataInputStream dis, int length) throws IOException
IOExceptionpublic void serialize(DataOutputStream dos) throws IOException
Dataserialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.