Uses of Class
io.github.pimak.ntfy.core.AuthMode
Packages that use AuthMode
-
Uses of AuthMode in io.github.pimak.ntfy.core
Subclasses of AuthMode in io.github.pimak.ntfy.coreModifier and TypeClassDescriptionstatic final classSendsAuthorization: Basic <base64(username:password)>.static final classSendsAuthorization: Bearer <token>.static final classSends noAuthorizationheader at all — a valid anonymous publish.Methods in io.github.pimak.ntfy.core that return AuthModeModifier and TypeMethodDescriptionstatic AuthModeCreates aAuthMode.BasicAuthauth mode carrying the given username/password pair.static AuthModeCreates aAuthMode.BearerTokenauth mode carrying the given token.static AuthModeAuthMode.fromCredentials(String token, String username, String password) Derives the applicableAuthModefrom raw configured credentials, encoding the same precedence as the engine's configuration surface: a non-blanktokenalways wins, even ifusername/passwordare also set; otherwise a non-blankusernameANDpasswordtogether selectAuthMode.BasicAuth; otherwiseAuthMode.None.static AuthModeAuthMode.none()Returns the sharedAuthMode.Noneinstance (noAuthorizationheader is sent).Methods in io.github.pimak.ntfy.core with parameters of type AuthModeModifier and TypeMethodDescriptionDeprecated.NtfyPublisher.publish(String url, String topic, String title, AuthMode auth, String body, String priority, String tags) Deprecated.NtfyPublisher.publish(String url, String topic, String title, AuthMode auth, String body, String priority, String tags, String click) Deprecated.NtfyPublisher.publish(String url, String topic, String title, AuthMode auth, String body, String priority, String tags, String click, String actions) Deprecated.