protected synchronized void installJAASConfigurationFromJAASConfigFile ( ) { JAASLoginConfig jaasLoginConfig = jaasLoginConfigRef . getService ( ) ; if ( jaasLoginConfig != null ) { jaasConfigurationEntriesFromJaasConfig = jaasLoginConfig . getEntries ( ) ; if ( jaasConfigurationEntriesFromJaasConfig != null ) { if ( jaasSecurityConfiguration == null ) { jaasSecurityConfiguration = new JAASSecurityConfiguration ( ) ; Configuration . setConfiguration ( jaasSecurityConfiguration ) ; } jaasSecurityConfiguration . setAppConfigurationEntries ( jaasConfigurationEntriesFromJaasConfig ) ; } } }
This method optional install the JAAS configuration that specified in the jaas . conf file