com.marklogic.xcc.examples

## Class HelloSecureWorld

- java.lang.Object
- - com.marklogic.xcc.examples.HelloSecureWorld

-     public class HelloSecureWorld
      extends java.lang.Object

  A version of the Hello World example that connects to a server using SSL/TLS.

  This example can load a specified key store of trusted signing authorities, use the Java default key store, or use a stub that accepts any server certificate. It can also load client certificates from a specified key store, or connect without a certificate.

  In part to demonstrate the available configuration options, connections are forced to use TLS with strong ciphers using 256 bit keys, as might be desirable with highly sensitive data being transmitted over public networks.

  Click here for the source code for this class.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HelloSecureWorld()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] args)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HelloSecureWorld

          public HelloSecureWorld()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

Copyright © 2025 MarkLogic Corporation

Complete online documentation for MarkLogic Server, XQuery and related components may be found at docs.progress.com