Class Tls.Client (0.3.0)

public static final class Tls.Client extends GeneratedMessage implements Tls.ClientOrBuilder

Transport Layer Security (TLS) information associated with the client (for example, Certificate or JA3 hash).

Protobuf type google.backstory.Tls.Client

Implements

Tls.ClientOrBuilder

Static Fields

CERTIFICATE_FIELD_NUMBER

public static final int CERTIFICATE_FIELD_NUMBER
Field Value
Type Description
int

JA3_FIELD_NUMBER

public static final int JA3_FIELD_NUMBER
Field Value
Type Description
int

JA4_FIELD_NUMBER

public static final int JA4_FIELD_NUMBER
Field Value
Type Description
int

SERVER_NAME_FIELD_NUMBER

public static final int SERVER_NAME_FIELD_NUMBER
Field Value
Type Description
int

SUPPORTED_CIPHERS_FIELD_NUMBER

public static final int SUPPORTED_CIPHERS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Tls.Client getDefaultInstance()
Returns
Type Description
Tls.Client

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Tls.Client.Builder newBuilder()
Returns
Type Description
Tls.Client.Builder

newBuilder(Tls.Client prototype)

public static Tls.Client.Builder newBuilder(Tls.Client prototype)
Parameter
Name Description
prototype Tls.Client
Returns
Type Description
Tls.Client.Builder

parseDelimitedFrom(InputStream input)

public static Tls.Client parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tls.Client
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tls.Client parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tls.Client
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Tls.Client parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Tls.Client
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Tls.Client parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tls.Client
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Tls.Client parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Tls.Client
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Tls.Client parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tls.Client
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Tls.Client parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Tls.Client
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Tls.Client parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tls.Client
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Tls.Client parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tls.Client
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tls.Client parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tls.Client
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Tls.Client parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Tls.Client
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Tls.Client parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tls.Client
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Tls.Client> parser()
Returns
Type Description
Parser<Client>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCertificate()

public Certificate getCertificate()

Client certificate.

.google.backstory.Certificate certificate = 1;

Returns
Type Description
Certificate

The certificate.

getCertificateOrBuilder()

public CertificateOrBuilder getCertificateOrBuilder()

Client certificate.

.google.backstory.Certificate certificate = 1;

Returns
Type Description
CertificateOrBuilder

getDefaultInstanceForType()

public Tls.Client getDefaultInstanceForType()
Returns
Type Description
Tls.Client

getJa3()

public String getJa3()

JA3 hash from the TLS ClientHello, as a hex-encoded string.

string ja3 = 2;

Returns
Type Description
String

The ja3.

getJa3Bytes()

public ByteString getJa3Bytes()

JA3 hash from the TLS ClientHello, as a hex-encoded string.

string ja3 = 2;

Returns
Type Description
ByteString

The bytes for ja3.

getJa4()

public String getJa4()

JA4 hash from the TLS ClientHello, as a hex-encoded string.

string ja4 = 5;

Returns
Type Description
String

The ja4.

getJa4Bytes()

public ByteString getJa4Bytes()

JA4 hash from the TLS ClientHello, as a hex-encoded string.

string ja4 = 5;

Returns
Type Description
ByteString

The bytes for ja4.

getParserForType()

public Parser<Tls.Client> getParserForType()
Returns
Type Description
Parser<Client>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServerName()

public String getServerName()

Host name of the server, that the client is connecting to.

string server_name = 3;

Returns
Type Description
String

The serverName.

getServerNameBytes()

public ByteString getServerNameBytes()

Host name of the server, that the client is connecting to.

string server_name = 3;

Returns
Type Description
ByteString

The bytes for serverName.

getSupportedCiphers(int index)

public String getSupportedCiphers(int index)

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The supportedCiphers at the given index.

getSupportedCiphersBytes(int index)

public ByteString getSupportedCiphersBytes(int index)

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the supportedCiphers at the given index.

getSupportedCiphersCount()

public int getSupportedCiphersCount()

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Returns
Type Description
int

The count of supportedCiphers.

getSupportedCiphersList()

public ProtocolStringList getSupportedCiphersList()

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Returns
Type Description
ProtocolStringList

A list containing the supportedCiphers.

hasCertificate()

public boolean hasCertificate()

Client certificate.

.google.backstory.Certificate certificate = 1;

Returns
Type Description
boolean

Whether the certificate field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Tls.Client.Builder newBuilderForType()
Returns
Type Description
Tls.Client.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Tls.Client.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Tls.Client.Builder
Overrides

toBuilder()

public Tls.Client.Builder toBuilder()
Returns
Type Description
Tls.Client.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException