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

[GR-57827] Initialize security providers at run time. #10143

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

The code walkthrough:

  • Remove fields that were holding provider objects in the image heap (and thus initialized at build time). Move all JDK providers (that can be moved) to runtime initialization (see SecurityServicesFeature.java).
  • Allow the loading of security providers via the service loading mechanism (see ServiceLoaderFeature.java).
  • Use a separate structure to support provider verification (see SecurityProvidersSupport), avoiding the need to keep provider objects in the image heap (see SecuritySubstitutions).
  • Allow the instantiation of the security provider at run-time by modifying substitutions in SecuritySubstitutions.
  • Remove the build-time initialization of XMLDSigRI from TrustStoreManager.
  • Update SecurityServiceTest to align with the new changes.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 22, 2024
@graalvmbot graalvmbot force-pushed the js/GR-57827/providers-in-build-time branch 5 times, most recently from 34af8ac to 6456842 Compare December 3, 2024 09:05
@graalvmbot graalvmbot force-pushed the js/GR-57827/providers-in-build-time branch from 6456842 to 7dcb3a1 Compare December 4, 2024 11:46
@graalvmbot graalvmbot force-pushed the js/GR-57827/providers-in-build-time branch from 7dcb3a1 to 032d899 Compare December 25, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants