public class TLSA extends Data
| Modifier and Type | Class and Description |
|---|---|
static class | TLSA.CertUsageThe certificate usage field. |
static class | TLSA.MatchingTypeMatchingType. |
static class | TLSA.SelectorSelector. |
| Modifier and Type | Field and Description |
|---|---|
TLSA.CertUsage | certUsagecertUsage. |
byte | certUsageByteThe provided association that will be used to match the certificate presented in
the TLS handshake. |
TLSA.MatchingType | matchingTypematchingType. |
byte | matchingTypeByteHow the certificate association is presented. |
TLSA.Selector | selectorselector. |
byte | selectorByteWhich 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)Create TLSA |
| Modifier and Type | Method and Description |
|---|---|
boolean | certificateAssociationEquals(byte[] otherCertificateAssociation) |
byte[] | getCertificateAssociation() |
Record.TYPE | getType()getType. |
static TLSA | parse(DataInputStream dis,
int length)parse. |
void | serialize(DataOutputStream dos)serialize. |
String | toString()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()
public static TLSA parse(DataInputStream dis, int length) throws IOException
IOExceptionpublic void serialize(DataOutputStream dos) throws IOException
serialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.