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.
|
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
public final byte certUsageByte
public final TLSA.CertUsage certUsage
public final byte selectorByte
public final TLSA.Selector selector
public final byte matchingTypeByte
public final TLSA.MatchingType matchingType
public static TLSA parse(DataInputStream dis, int length) throws IOException
IOException
public Record.TYPE getType()
Data
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.public byte[] getCertificateAssociation()
public boolean certificateAssociationEquals(byte[] otherCertificateAssociation)