synchronized static void setFactoryImplementation ( ) { if ( initialized ) return ; initialized = true ; String authConfigProvider = Security . getProperty ( AuthConfigFactory . DEFAULT_FACTORY_SECURITY_PROPERTY ) ; if ( authConfigProvider == null || authConfigProvider . isEmpty ( ) ) { Tr . info ( tc , "JASPI_DEFAULT_AUTH_CONFIG_FACTORY" , new Object [ ] { JASPI_PROVIDER_REGISTRY } ) ; Security . setProperty ( AuthConfigFactory . DEFAULT_FACTORY_SECURITY_PROPERTY , JASPI_PROVIDER_REGISTRY ) ; } else if ( ! authConfigProvider . equals ( JASPI_PROVIDER_REGISTRY ) ) { Tr . info ( tc , "JASPI_AUTH_CONFIG_FACTORY" , new Object [ ] { authConfigProvider } ) ; } }
Make sure we don t dump multiple messages to the logs by only initializing once .