Skip to content

Commit

Permalink
Force initialization of javaxSecurityAuthKerberosAccess.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Skoko committed Jul 25, 2023
1 parent ffe8154 commit 45acfeb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ public void afterRegistration(AfterRegistrationAccess a) {
ModuleSupport.accessPackagesToClass(ModuleSupport.Access.OPEN, getClass(), false, "java.base", "sun.security.x509");
ModuleSupport.accessModuleByClass(ModuleSupport.Access.OPEN, getClass(), Security.class);
ImageSingletons.add(SecurityProvidersFilter.class, this);
ImageSingletons.lookup(RuntimeClassInitializationSupport.class).initializeAtBuildTime("javax.security.auth.kerberos.KeyTab",
"Force initialization of sun.security.krb5.KerberosSecrets.javaxSecurityAuthKerberosAccess");
}

@Override
Expand Down Expand Up @@ -252,7 +254,7 @@ public void duringSetup(DuringSetupAccess a) {

rci.rerunInitialization(clazz(access, "sun.security.provider.SeedGenerator"), "for substitutions");
rci.rerunInitialization(clazz(access, "sun.security.provider.SecureRandom$SeederHolder"), "for substitutions");
rci.rerunInitialization(clazz(access, "sun.security.krb5.Config"), "lazy initial value");
rci.rerunInitialization(clazz(access, "sun.security.krb5.Config"), "Reset the value of lazily initialized field sun.security.krb5.Config#singleton");

/*
* sun.security.provider.AbstractDrbg$SeederHolder has a static final EntropySource seeder
Expand Down

0 comments on commit 45acfeb

Please sign in to comment.