Class AuthMode.BearerToken

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

public static final class AuthMode.BearerToken extends AuthMode
Sends Authorization: Bearer <token>.
  • 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.