Class Tls.Client.Builder (0.3.0)

public static final class Tls.Client.Builder extends GeneratedMessage.Builder<Tls.Client.Builder> 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 Methods

getDescriptor()

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

Methods

addAllSupportedCiphers(Iterable<String> values)

public Tls.Client.Builder addAllSupportedCiphers(Iterable<String> values)

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Parameter
Name Description
values Iterable<String>

The supportedCiphers to add.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

addSupportedCiphers(String value)

public Tls.Client.Builder addSupportedCiphers(String value)

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Parameter
Name Description
value String

The supportedCiphers to add.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

addSupportedCiphersBytes(ByteString value)

public Tls.Client.Builder addSupportedCiphersBytes(ByteString value)

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Parameter
Name Description
value ByteString

The bytes of the supportedCiphers to add.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

public Tls.Client.Builder clear()
Returns
Type Description
Tls.Client.Builder
Overrides

clearCertificate()

public Tls.Client.Builder clearCertificate()

Client certificate.

.google.backstory.Certificate certificate = 1;

Returns
Type Description
Tls.Client.Builder

clearJa3()

public Tls.Client.Builder clearJa3()

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

string ja3 = 2;

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

clearJa4()

public Tls.Client.Builder clearJa4()

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

string ja4 = 5;

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

clearServerName()

public Tls.Client.Builder clearServerName()

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

string server_name = 3;

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

clearSupportedCiphers()

public Tls.Client.Builder clearSupportedCiphers()

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

getCertificate()

public Certificate getCertificate()

Client certificate.

.google.backstory.Certificate certificate = 1;

Returns
Type Description
Certificate

The certificate.

getCertificateBuilder()

public Certificate.Builder getCertificateBuilder()

Client certificate.

.google.backstory.Certificate certificate = 1;

Returns
Type Description
Certificate.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCertificate(Certificate value)

public Tls.Client.Builder mergeCertificate(Certificate value)

Client certificate.

.google.backstory.Certificate certificate = 1;

Parameter
Name Description
value Certificate
Returns
Type Description
Tls.Client.Builder

mergeFrom(Tls.Client other)

public Tls.Client.Builder mergeFrom(Tls.Client other)
Parameter
Name Description
other Tls.Client
Returns
Type Description
Tls.Client.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Tls.Client.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tls.Client.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Tls.Client.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Tls.Client.Builder
Overrides

setCertificate(Certificate value)

public Tls.Client.Builder setCertificate(Certificate value)

Client certificate.

.google.backstory.Certificate certificate = 1;

Parameter
Name Description
value Certificate
Returns
Type Description
Tls.Client.Builder

setCertificate(Certificate.Builder builderForValue)

public Tls.Client.Builder setCertificate(Certificate.Builder builderForValue)

Client certificate.

.google.backstory.Certificate certificate = 1;

Parameter
Name Description
builderForValue Certificate.Builder
Returns
Type Description
Tls.Client.Builder

setJa3(String value)

public Tls.Client.Builder setJa3(String value)

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

string ja3 = 2;

Parameter
Name Description
value String

The ja3 to set.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

setJa3Bytes(ByteString value)

public Tls.Client.Builder setJa3Bytes(ByteString value)

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

string ja3 = 2;

Parameter
Name Description
value ByteString

The bytes for ja3 to set.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

setJa4(String value)

public Tls.Client.Builder setJa4(String value)

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

string ja4 = 5;

Parameter
Name Description
value String

The ja4 to set.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

setJa4Bytes(ByteString value)

public Tls.Client.Builder setJa4Bytes(ByteString value)

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

string ja4 = 5;

Parameter
Name Description
value ByteString

The bytes for ja4 to set.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

setServerName(String value)

public Tls.Client.Builder setServerName(String value)

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

string server_name = 3;

Parameter
Name Description
value String

The serverName to set.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

setServerNameBytes(ByteString value)

public Tls.Client.Builder setServerNameBytes(ByteString value)

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

string server_name = 3;

Parameter
Name Description
value ByteString

The bytes for serverName to set.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.

setSupportedCiphers(int index, String value)

public Tls.Client.Builder setSupportedCiphers(int index, String value)

Ciphers supported by the client during client hello.

repeated string supported_ciphers = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The supportedCiphers to set.

Returns
Type Description
Tls.Client.Builder

This builder for chaining.