public AppConfigurationEntry createAppConfigurationEntry ( JAASLoginModuleConfig loginModule , String loginContextEntryName ) { String loginModuleClassName = loginModule . getClassName ( ) ; LoginModuleControlFlag controlFlag = loginModule . getControlFlag ( ) ; Map < String , Object > options = new HashMap < String , Object > ( ) ; options . putAll ( loginModule . getOptions ( ) ) ; if ( JaasLoginConfigConstants . APPLICATION_WSLOGIN . equals ( loginContextEntryName ) ) { options . put ( WAS_IGNORE_CLIENT_CONTAINER_DD , true ) ; } else { options . put ( WAS_IGNORE_CLIENT_CONTAINER_DD , false ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "loginModuleClassName: " + loginModuleClassName + " options: " + options . toString ( ) + " controlFlag: " + controlFlag . toString ( ) ) ; } AppConfigurationEntry loginModuleEntry = new AppConfigurationEntry ( loginModuleClassName , controlFlag , options ) ; return loginModuleEntry ; }
Create an AppConfigurationEntry object for the given JAAS login module