Wildfly 26: Capture custom security realm configuration during runtime

22 views
Skip to first unread message

Laura Schanno

unread,
Mar 4, 2026, 12:59:14 PM (9 days ago) Mar 4
to WildFly

Hello,


I have a custom security realm class DatawaveSecurityRealm that implements CacheableSecurityRealm (Wildfly 26). I want to capture the configuration properties that I set for the security realm below (certVerifier, oscpLevel, etc) and ensure they are passed to the security realm instance during an authentication attempt.


# Create a custom realm that handles preparing the DatawavePrincipal for authentication.

/subsystem=elytron/custom-realm=datawaveRealm:add( \

   class-name=datawave.security.realm.DatawaveSecurityRealm, \

   module="datawave.security.elytron", \

   configuration={ \

       certVerifier="datawave.security.cert.DatawaveCertVerifier", \

       ocspLevel="off", \

       trustedHeadersEnabled="${dw.trusted.header.authentication:false}" \

       })


How can I capture these properties during runtime?


Thanks,

Laura


Laura Schanno

unread,
Mar 4, 2026, 1:39:08 PM (9 days ago) Mar 4
to WildFly
Solved this for myself, I needed to add a initialize(Map<String,String> config) method.
Reply all
Reply to author
Forward
0 new messages