Class TokenCreation

java.lang.Object
io.deephaven.jupyter.kernel.TokenCreation
All Implemented Interfaces:
com.illumon.util.net.TokenMangler

public class TokenCreation
extends Object
implements com.illumon.util.net.TokenMangler
  • Constructor Details

  • Method Details

    • getInstance

      public static TokenCreation getInstance()
    • createTokenBase64

      public String createTokenBase64​(String service) throws IOException
      The in-worker jupyter kernel widget calls this function and the return value is serialized to the JS client widget.

      See prime-connection-info.py

      Parameters:
      service - the service
      Returns:
      the token in base64
      Throws:
      IOException - if an IO exception occurs
    • getPublicKey

      public PublicKey getPublicKey()
      Specified by:
      getPublicKey in interface com.illumon.util.net.TokenMangler