Class ConnectionMetadata (1.15.0)

public class ConnectionMetadata

A value object containing configuration needed to set up an mTLS connection to a Cloud SQL instance.

Inheritance

java.lang.Object > ConnectionMetadata

Constructors

ConnectionMetadata(String preferredIpAddress, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory)

public ConnectionMetadata(String preferredIpAddress, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory)

Construct an immutable ConnectionMetadata.

Parameters
NameDescription
preferredIpAddressString
keyManagerFactoryKeyManagerFactory
trustManagerFactoryTrustManagerFactory

Methods

getKeyManagerFactory()

public KeyManagerFactory getKeyManagerFactory()
Returns
TypeDescription
KeyManagerFactory

getPreferredIpAddress()

public String getPreferredIpAddress()
Returns
TypeDescription
String

getTrustManagerFactory()

public TrustManagerFactory getTrustManagerFactory()
Returns
TypeDescription
TrustManagerFactory