Class AuthMode.None

java.lang.Object
io.github.pimak.ntfy.core.AuthMode
io.github.pimak.ntfy.core.AuthMode.None
Enclosing class:
AuthMode

public static final class AuthMode.None extends AuthMode
Sends no Authorization header at all — a valid anonymous publish.
  • Method Details

    • buildHeader

      public Optional<String> buildHeader()
      Description copied from class: AuthMode
      Builds the Authorization header value for this auth mode, if any.
      Specified by:
      buildHeader in class AuthMode
      Returns:
      Optional.of(headerValue) when this mode sends an Authorization header, or Optional.empty() when no header should be sent at all.