Registry / web-framework / jetty-security

jetty-security

JSON →
library12.1.8javamavenunverified

Jetty Security provides authentication and authorization support for Jetty server, including login services and security constraints.

<dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-security</artifactId> <version>12.1.8</version> </dependency>
INSTALL
IMPORT
SIG · JETTY-SECURITY
J
jetty-security
web-frameworkjavav12.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LoginService
✓ org.eclipse.jetty.security.LoginService

Configures a HashLoginService with a user and role for Jetty security.

import org.eclipse.jetty.security.LoginService; import org.eclipse.jetty.security.HashLoginService; import org.eclipse.jetty.util.security.Credential; public class Main { public static void main(String[] args) { HashLoginService loginService = new HashLoginService(); loginService.putUser("admin", Credential.getCredential("password"), new String[]{"admin"}); System.out.println("Login service configured"); } }
Debug
Known issues
breakingJetty 12 uses Jakarta EE namespace; ensure compatibility with your servlet container.
fix
Use org.eclipse.jetty:jetty-security version 11.x for javax.servlet or 12.x for jakarta.servlet.
affects: >=12.0.0
Upgrade
Version history
12.1.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
jetty-security — mvn dependency:get jetty-security · libregistry