Class CosmosSelfSignedCertificate
java.lang.Object
com.azure.cosmos.implementation.Configs
net.officefloor.nosql.cosmosdb.test.CosmosSelfSignedCertificate
public class CosmosSelfSignedCertificate
extends com.azure.cosmos.implementation.Configs
Allows use of self signed certificate for connecting to Cosmos.
- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from class com.azure.cosmos.implementation.Configs
NON_IDEMPOTENT_WRITE_RETRY_POLICY, NON_IDEMPOTENT_WRITE_RETRY_POLICY_VARIABLE, SPECULATION_THRESHOLD, SPECULATION_THRESHOLD_STEP, SPECULATION_TYPE -
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.ssl.SslContextstatic voidinitialise(com.azure.cosmos.CosmosClientBuilder clientBuilder, String certificate) Initialises theCosmosClientBuilder.static voidAvoid Open SSL due to Cosmos incompatibilities with Netty.Methods inherited from class com.azure.cosmos.implementation.Configs
getAddressRefreshResponseTimeoutInSeconds, getAggressiveWarmupConcurrency, getBarrierRetryIntervalInMsForMultiRegion, getClientTelemetryEndpoint, getClientTelemetryProxyOptionsConfig, getClientTelemetrySchedulingInSec, getConnectionAcquireTimeout, getCPUCnt, getDelayBetweenReadBarrierCallsInMs, getDirectHttpsMaxConnectionLimit, getEnvironmentName, getGlobalEndpointManagerMaxInitializationTimeInSeconds, getHttpResponseTimeoutInSeconds, getMaxBarrierRetriesForMultiRegion, getMaxHttpBodyLength, getMaxHttpChunkSize, getMaxHttpHeaderSize, getMaxHttpInitialLineLength, getMaxIdleConnectionTimeout, getMaxNumberOfPrimaryReadRetries, getMaxNumberOfReadBarrierReadRetries, getMaxNumberOfReadQuorumRetries, getMaxRetriesInLocalRegionWhenRemoteRegionPreferred, getMaxShortBarrierRetriesForMultiRegion, getMinConnectionPoolSizePerEndpoint, getNonIdempotentWriteRetryPolicy, getOpenConnectionsConcurrency, getProtocol, getQueryPlanResponseTimeoutInSeconds, getReactorNettyConnectionPoolName, getReactorNettyMaxConnectionPoolSize, getSessionTokenMismatchDefaultWaitTimeInMs, getSessionTokenMismatchInitialBackoffTimeInMs, getSessionTokenMismatchMaximumBackoffTimeInMs, getShortBarrierRetryIntervalInMsForMultiRegion, getSpeculationType, getUnavailableLocationsExpirationTimeInSeconds, isEmptyPageDiagnosticsEnabled, isQueryPlanCachingEnabled, isReplicaAddressValidationEnabled, isTcpHealthCheckTimeoutDetectionEnabled, shouldSwitchOffIOThreadForResponse, speculationThreshold, speculationThresholdStep, useLegacyTracing
-
Method Details
-
noOpenSsl
public static void noOpenSsl()Avoid Open SSL due to Cosmos incompatibilities with Netty. -
initialise
public static void initialise(com.azure.cosmos.CosmosClientBuilder clientBuilder, String certificate) throws Exception Initialises theCosmosClientBuilder.- Parameters:
clientBuilder-CosmosClientBuilderto initialise.certificate- Certificate to Cosmos DB emulator.- Throws:
Exception- If fails to createSslContext.
-
getSslContext
public io.netty.handler.ssl.SslContext getSslContext()- Overrides:
getSslContextin classcom.azure.cosmos.implementation.Configs
-