Security
Authentication and authorization patterns featuring Jakarta Security identity stores, form-based and basic authentication, EJB security, role-based access control, and password hashing.
Examples
Section titled “Examples”built-in-db-identity-storeJakarta Security
@DatabaseIdentityStoreDefinition with Pbkdf2PasswordHash.custom-identity-storeCustom IdentityStore implementation with @ApplicationScoped CDI bean.security-cart-secureEJB security with @DeclareRoles and @RolesAllowed annotations.security-converter-secureServlet-based security with declarative role-based access control.security-hello1-formauthForm-based authentication with @FormAuthenticationMechanismDefinition.security-hello2-basicauthHTTP Basic authentication with @BasicAuthenticationMechanismDefinition.