Given:
- Modules 
AandB, whereBimportsA. - Module 
Aexportsexternal.class1. It defines but does not exportexternal.class1.secretProvider,internal.SharedSecretsandinternal.class2(more on these below). - Module 
Auses the SharedSecrets mechanism to grantexternal.class1access to private methods ininternal.class2usingexternal.class1.secretProvider. 
I wish to grant external.class3 (defined in Module B) access to private methods in internal.class2 but seeing as internal.SharedSecrets and external.class1.secretProvider are not exported by A I have no way of doing so.
Is there a way for B to access to A's secrets without exporting them for the whole world to see?