Interface SecretsStore

All Superinterfaces:
org.teavm.jso.JSObject

public interface SecretsStore extends org.teavm.jso.JSObject
One secret from a Secrets Store. Declared with secrets(), named SECRETS by default.

Unlike a plain secret, which is a string on env readable at module scope, this is fetched. So it blocks, and it cannot be read during module evaluation.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    org.teavm.jso.core.JSPromise<org.teavm.jso.core.JSString>
     
    default String
    Returns the secret's value.

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • value

      default String value()
      Returns the secret's value.
      Returns:
      the secret's value
    • read

      org.teavm.jso.core.JSPromise<org.teavm.jso.core.JSString> read()