INNER CODE UNIT · Java

toWorkflowServiceStubsOptions

temporalio/sdk-java · temporal-envconfig/src/main/java/io/temporal/envconfig/ClientConfigProfile.java:123

  public WorkflowServiceStubsOptions toWorkflowServiceStubsOptions() {
    WorkflowServiceStubsOptions.Builder builder = WorkflowServiceStubsOptions.newBuilder();
    if (this.address != null && !this.address.isEmpty()) {
      builder.setTarget(this.address);
    }
    if (this.apiKey != null && !this.apiKey.isEmpty()) {
      builder.addApiKey(() -> this.apiKey);
    }
    if (this.metadata != null) {
      builder.addGrpcMetadataProvider(() -> this.metadata);
    }
    if (this.tls != null && (this.tls.isDisabled() == null || !this.tls.isDisabled())) {
      InputStream clientCertStream = null;
      InputStream keyFileStream = null;
      InputStream trustCertCollectionInputStream = null;
      try {
        if (this.tls.getClientCertPath() != null && !this.tls.getClientCertPath().isEmpty()) {
          clientCertStream = Files.newInputStream(Paths.get(this.tls.getClientCertPath()));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…