Package io.github.pimak.ntfy.core
Class AuthMode.None
java.lang.Object
io.github.pimak.ntfy.core.AuthMode
io.github.pimak.ntfy.core.AuthMode.None
- Enclosing class:
AuthMode
Sends no
Authorization header at all — a valid anonymous publish.-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pimak.ntfy.core.AuthMode
AuthMode.BasicAuth, AuthMode.BearerToken, AuthMode.None -
Method Summary
Modifier and TypeMethodDescriptionBuilds theAuthorizationheader value for this auth mode, if any.Methods inherited from class io.github.pimak.ntfy.core.AuthMode
basic, bearer, fromCredentials, none
-
Method Details
-
buildHeader
Description copied from class:AuthModeBuilds theAuthorizationheader value for this auth mode, if any.- Specified by:
buildHeaderin classAuthMode- Returns:
Optional.of(headerValue)when this mode sends anAuthorizationheader, orOptional.empty()when no header should be sent at all.
-