jsentinel-standalone

Integrate jSentinel security into CLI, desktop, and plain-Java applications.

2|Updated Jul 7, 2019
One-click install
npx skills add https://github.com/vaadin-developer/security-for-flow --skill jsentinel-standalone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jsentinel-standalone
Source: https://github.com/vaadin-developer/security-for-flow/tree/main/docs/skills/claude/jsentinel-standalone
Command: npx skills add https://github.com/vaadin-developer/security-for-flow --skill jsentinel-standalone

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jSentinel-core, jSentinel-standalone, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a battle-tested integration of jSentinel into CLI, desktop, and plain-Java applications, offering robust security features for method-level enforcement and annotation-driven protection.

Core Features & Use Cases

  • Full Integration: Offers a fluent StandaloneSecurity.bootstrap() and @JSentinelAutoService-registered AuthenticationService / AuthorizationService.
  • Pre-seeded Users & Permissions: Includes admin/admin and user/user with specific permissions.
  • Interactive CLI Loop: Provides a secure command-line interface with permission checks.
  • Templates & POM Patch: Includes 9 templates and a POM patch for easy setup.
  • Use Case: Secure your command-line app or desktop application with jSentinel, leveraging SecuredProxy.wrap(...) or the @Secured annotation processor for runtime or compile-time enforcement.

Quick Start

Secure your Java app with jSentinel by adding the jSentinel-standalone dependency and configuring StandaloneSecurity.bootstrap().

Frequently Asked Questions about jsentinel-standalone

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add method-level security to a Java CLI application?

Method-level security for Java CLI applications is enforced by integrating jSentinel via StandaloneSecurity.bootstrap() and applying the @Secured annotation processor to restrict access to specific methods.

What is the best way to secure a desktop app using annotation-driven protection?

Annotation-driven protection for desktop apps is achieved by registering an AuthenticationService and AuthorizationService through @JSentinelAutoService and wrapping targets with SecuredProxy for runtime enforcement.

Does jSentinel support pre-seeded users and interactive command-line loops?

Yes, jSentinel supports interactive CLI loops with pre-seeded users, providing default admin/admin and user/user accounts configured with specific permissions for immediate testing and enforcement.

Can I use jSentinel to enforce compile-time security in plain-Java applications?

Compile-time security enforcement in plain-Java applications is supported using the jSentinel annotation processor, which validates @Secured rules during the build alongside runtime proxy wrapping.

What dependencies do I need to configure jSentinel standalone security?

Configuring standalone security requires adding the jSentinel-standalone dependency, patching your POM, and applying the 9 included setup templates to bootstrap the framework and adapter modules.

Why use jSentinel for CLI security instead of other Java security frameworks?

jSentinel provides a fluent standalone bootstrap tailored for CLI and desktop contexts, combining pre-seeded permissions, interactive loops, and both runtime and compile-time annotation enforcement in one integration.