Devadex

Spring Boot - Account Lock + Rate Limit AddOn

gumroad   $7.00   by hofftech

⚠️⚠️⚠️ IMPORTANT: Requires Spring Boot REST JWT Starter ⚠️⚠️⚠️ 📦 Package Contents - Account Lock & Rate Limit Addon v1.0.0Complete inventory of all files included in this addon package.📊 Package Statistics Total Files: 23 Java Classes: 7 new + 2 modified Test Files: 1 (with 100% coverage) Documentation: 6 files Scripts: 2 installation scripts Configuration: 1 template Total Lines of Code: ~2,500+ Documentation Pages: ~150+ 📁 Directory Structureaccount-lock-addon-v1.0.0/ │ ├── 📄 README.md # Main documentation ├── 📄 LICENSE.md # Commercial license ├── 📄 CHANGELOG.md # Version history ├── 📄 QUICKSTART.md # 5-minute guide ├── 📄 application.yaml.template # Configuration template │ ├── 📁 new-files/ # New components to add │ ├── 📁 entity/ │ │ └── LoginAttempt.java # Login tracking entity │ │ │ ├── 📁 repository/ │ │ └── LoginAttemptRepository.java # Data access layer │ │ │ ├── 📁 service/ │ │ └── AccountLockService.java # Core business logic │ │ │ ├── 📁 exception/ │ │ ├── AccountLockedException.java # Account lock exception │ │ └── RateLimitExceededException.java # Rate limit exception │ │ │ ├── 📁 config/ │ │ └── SchedulingConfig.java # Scheduling config │ │ │ └── 📁 migration/ │ └── V2__add_account_lock.sql # Database migration │ ├── 📁 patches/ # Modified existing files │ ├── AuthService.java # Enhanced auth service │ └── GlobalExceptionHandler.java # Updated error handler │ ├── 📁 test/ # Unit tests │ └── 📁 service/ │ └── AccountLockServiceTest.java # Test suite │ ├── 📁 scripts/ # Installation automation │ ├── install.sh # Linux/Mac installer │ └── install.bat # Windows installer │ └── 📁 docs/ # Documentation ├── ACCOUNT_LOCK_GUIDE.md # Complete guide (50+ pages) ├── API_EXAMPLES.md # API examples (30+ pages) ├── GUMROAD_DESCRIPTION.md # Sales page content └── Account_Lock_Tests.postman_collection.json # Postman tests 📝 File DescriptionsRoot FilesREADME.md Size: ~15 KB Content: Main documentation with installation, configuration, and usage Audience: All users LICENSE.md Size: ~8 KB Content: Commercial license terms, restrictions, and warranty Audience: Legal/compliance teams CHANGELOG.md Size: ~5 KB Content: Version history and future roadmap Audience: Developers tracking changes QUICKSTART.md Size: ~12 KB Content: 5-minute installation guide with troubleshooting Audience: New users application.yaml.template Size: ~6 KB Content: Complete configuration template with presets Audience: DevOps/configuration managers New Files (7 Java Classes) 1. LoginAttempt.java Location: new-files/entity/ Size: ~40 lines Purpose: JPA entity for tracking login attempts Features: Email tracking IP address recording Success/failure flag Automatic timestamp 2. LoginAttemptRepository.java Location: new-files/repository/ Size: ~30 lines Purpose: Data access layer with custom queries Features: Find attempts by email Find attempts by IP Count failed attempts Automatic cleanup 3. AccountLockService.java Location: new-files/service/ Size: ~180 lines Purpose: Core business logic for locking and rate limiting Features: Account lock checking Rate limit enforcement Login recording Status retrieval Admin reset Scheduled cleanup 4. AccountLockedException.java Location: new-files/exception/ Size: ~15 lines Purpose: Custom exception for account locks Features: Lock time information Descriptive message 5. RateLimitExceededException.java Location: new-files/exception/ Size: ~15 lines Purpose: Custom exception for rate limits Features: Retry-after information Descriptive message 6. SchedulingConfig.java Location: new-files/config/ Size: ~10 lines Purpose: Enable Spring scheduling for cleanup Features: @EnableScheduling annotation Simple configuration class 7. V2__add_account_lock.sql Location: new-files/migration/ Size: ~25 lines Purpose: Database migration script Features: Create login_attempts table Add indexes for performance Compatible with PostgreSQL/MySQL/H2 Patches (2 Modified Files) 1. AuthService.java Location: patches/ Size: ~75 lines Purpose: Enhanced authentication service Changes: Added AccountLockService injection Added rate limit check Added account lock check Added attempt recording Added IP address detection 2. GlobalExceptionHandler.java Location: patches/ Size: ~65 lines Purpose: Enhanced exception handler Changes: Added AccountLockedException handler Added RateLimitExceededException handler Returns proper HTTP status codes (423, 429) Includes Retry-After headers Tests (1 Test Class)AccountLockServiceTest.java Location: test/service/ Size: ~250 lines Purpose: Comprehensive unit tests Coverage: 100% Tests: Account locking after max attempts Automatic unlock after timeout Rate limiting by IP Login recording (success/failure) Remaining attempts calculation Admin reset functionality Account status retrieval Edge cases Scripts (2 Installation Scripts) 1. install.sh Location: scripts/ Size: ~120 lines Platform: Linux/Mac Purpose: Automated installation Actions: Copy all new files Backup existing files Replace modified files Add configuration Verify installation 2. install.bat Location: scripts/ Size: ~100 lines Platform: Windows Purpose: Automated installation Actions: Same as install.sh but for Windows Documentation (4 Files) 1. ACCOUNT_LOCK_GUIDE.md Location: docs/ Size: ~50 pages Content: Feature overview Installation guide Configuration reference Security best practices Troubleshooting API behavior Database schema Monitoring queries 2. API_EXAMPLES.md Location: docs/ Size: ~30 pages Content: Normal login flow Failed attempt scenarios Account lock examples Rate limit examples Admin operations Test scripts cURL commands Response examples 3. GUMROAD_DESCRIPTION.md Location: docs/ Size: ~20 pages Content: Sales page content Feature highlights Pricing information Comparison with alternatives Customer testimonials FAQ section 4. Account_Lock_Tests.postman_collection.json Location: docs/ Size: ~300 lines Content: Postman test collection 15+ test requests Automated test scripts Environment variables Test assertions ✨ Key Features ImplementedAccount Locking ✅ Configurable max attempts ✅ Configurable lock duration ✅ Automatic unlock ✅ Per-account tracking ✅ Real-time feedback Rate Limiting ✅ IP-based throttling ✅ Sliding window algorithm ✅ Proxy support (X-Forwarded-For) ✅ Retry-After headers ✅ Configurable limits Audit Trail ✅ Complete login history ✅ Success/failure tracking ✅ IP and email recording ✅ Timestamp for each attempt ✅ Automatic cleanup Configuration ✅ YAML-based settings ✅ Environment profiles ✅ Preset configurations ✅ Runtime adjustable ✅ Scheduled cleanup Testing ✅ 100% code coverage ✅ Unit tests with Mockito ✅ Integration test examples ✅ Postman collection ✅ cURL test scripts 📚 Documentation QualityUser Documentation ✅ Installation guides (automated + manual) ✅ Configuration reference ✅ API examples with real requests/responses ✅ Troubleshooting guide ✅ Quick start (5 minutes) Technical Documentation ✅ Javadoc for all public methods ✅ Inline code comments ✅ Database schema documentation ✅ Architecture overview ✅ Security best practices Sales Documentation ✅ Feature comparison ✅ Pricing information ✅ License terms ✅ Support policy ✅ FAQ section 🎯 Target AudiencePrimary Users Java developers using Spring Boot Backend engineers building APIs DevOps teams securing applications Tech leads evaluating security solutions Use Cases SaaS applications Banking/finance systems E-commerce platforms Healthcare applications Enterprise systems Startup MVPs 💰 Value PropositionTime Saved Development: 2-3 days saved Testing: 1 day saved Documentation: 1 day saved Total: ~4-5 days (~$1,000-1,500 value) Quality Benefits Production-ready code Comprehensive tests Complete documentation Security best practices Performance optimized Support Included Installation assistance Configuration help Bug fixes Email support 1 year of updates 🔒 Security ComplianceStandards Met ✅ PCI DSS Requirement 8.1.6 ✅ NIST 800-63B guidelines ✅ OWASP Top 10 mitigation ✅ SOC 2 access controls Security Features ✅ Brute force protection ✅ Credential stuffing prevention ✅ DDoS mitigation ✅ Account takeover prevention ✅ Complete audit trail 📦 Package FormatsAvailable Formats ZIP: account-lock-addon-v1.0.0.zip TAR.GZ: account-lock-addon-v1.0.0.tar.gz GitHub: Private repository access (Team license) Package Size Compressed: ~150 KB Extracted: ~500 KB With Dependencies: None (uses existing) 🚀 Getting Started Extract the package Run installation script Configure settings in application.yaml Migrate database Build and test Deploy with confidence Installation Time: 5 minutesConfiguration Time: 2 minutesTotal Time to Production: 7 minutes📞 Support & Contact Email: support@hofftech.io Response Time: Within 24 hours Support Hours: Mon-Fri, 9am-5pm EST Documentation: Included in package 📜 Version Information Version: 1.0.0 Release Date: February 1, 2026 Compatibility: Spring Boot 3.3.5+, Java 17+ License: Commercial (Single: 49,Team:149) ✅ Quality AssuranceTested On ✅ Spring Boot 3.3.5 ✅ Java 17, 21 ✅ PostgreSQL 15 ✅ MySQL 8 ✅ H2 2.x ✅ Windows 11 ✅ macOS Ventura ✅ Ubuntu 22.04 Code Quality ✅ 100% test coverage ✅ Zero static analysis warnings ✅ Follows Spring Boot best practices ✅ Clean code principles ✅ Comprehensive error handling © 2026 HoffTech - Professional Spring Boot SolutionsLast Updated: February 1, 2026

Get it → hofftech.gumroad.com

Found on Devadex — the discovery index for independent software the big search engines bury. More from gumroad.

Report this listing