You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create OsSecureStore: A cross-platform secure credential storage library
This commit introduces OsSecureStore, a Java library that provides secure storage
for sensitive data like tokens, passwords, and credentials using platform-native
security features:
Key components:
- Core API with OsSecureStore static methods for basic secure storage
- SecureDataManager for organized credential management
- Platform abstraction layer for cross-platform support
- Native Windows DPAPI integration via JNI
- Automatic application name detection
- Secure data persistence in OS-appropriate locations
Technical details:
- Platform-specific implementations through PlatformSecureStorage interface
- Windows implementation using Data Protection API (DPAPI)
- JNI bridge between Java and native Windows security features
- Base64 encoding for encrypted data storage
- Auto-extraction of native libraries
- Prefix-based namespace isolation for stored credentials
Future extensibility:
- Architecture designed for macOS and Linux implementations
- Clean interfaces for adding new platform support
Testing:
- Comprehensive WindowsSecureStorageTest implementation for all features
- Edge case testing for storage reliability
The library is designed to be a comprehensive solution for securely storing
sensitive application data while leveraging OS-level security capabilities.