Package net.voidnote

Class CreateOptions

java.lang.Object
net.voidnote.CreateOptions

public final class CreateOptions extends Object
Options for VoidNote.create(java.lang.String, net.voidnote.CreateOptions).

 CreateOptions opts = CreateOptions.of("vn_...")
     .withMaxViews(1)
     .withExpiresIn(6)      // hours: 1, 6, 24, 72, 168, 720
     .withNoteType("pipe")  // "secure" (default) or "pipe"
     .withTitle("Deploy token");
 
  • Field Details

    • apiKey

      public final String apiKey
      Required: your API key (vn_...).
    • title

      public final String title
      Optional note title (stored in plaintext).
    • maxViews

      public final Integer maxViews
      Destroy after this many reads (1–100). null = server default (1).
    • expiresIn

      public final Integer expiresIn
      Expiry in hours. Must be one of: 1, 6, 24, 72, 168, 720. null = server default (24h).
    • noteType

      public final String noteType
      Note type: "secure" (default, encrypted static note) or "pipe" (streaming append mode). null = server default ("secure").
  • Method Details