Basic difference between the CustomRealmPlugin in 2.x to CustomRealmExtension in 5.x is that now an instance needs to be provided instead of a class ref. previously realms were able to inject its own configurations by reading some yml file. but with 5.x restructuring i am unable to figure out how to read custom properties into a realm. These properties will be in a custom yml file in installed dir.
Also need to figure out whats the best way to get install dir so that i can load my properties via the realm.
Each realm is provided a RealmConfig which provides the Enviornment. From the environment you can resolve the configDir and then read your file from there.
java.security.AccessControlException: access denied ("java.io.FilePermission" ".\src\test\resources\abc.jks" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.