Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Exception Handling for Restricted Environments #153

Closed
terryquigleysas opened this issue Apr 30, 2024 · 2 comments · Fixed by #154
Closed

Additional Exception Handling for Restricted Environments #153

terryquigleysas opened this issue Apr 30, 2024 · 2 comments · Fixed by #154

Comments

@terryquigleysas
Copy link
Contributor

Describe the bug
We are looking to use password4j in an application that has a strict security policy, meaning that a static initializer will prevent the Password class from loading. We would like to add additional exception handling to allow password4j to be usable in this environment.

To Reproduce
Run password4j with a heavily restricted security policy - e.g. no FilePermissions.

Expected behavior
Password4j should be usable even when no access to psw4j.properties due to a restrictive security policy.

Environment:

  • OS: [All]
  • JDK [OracleJDK 11 and 17]
  • Version [1.7.3, 1.8.1]

Additional context
We have a fix ready. I will supply a PR.

@firaja
Copy link
Member

firaja commented Apr 30, 2024

Thank you for your support to the project. I'm going to release 1.8.2 in 1-2 days and this will be part of the package.

@terryquigleysas
Copy link
Contributor Author

@firaja Great news. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants