public void initialize ( AuthSource authSource ) { this . authSource = authSource ; AuthSourceSettingDAO authSourceSettingDAO = new AuthSourceSettingDAO ( ) ; List < AuthSourceSetting > authSourceSettings = authSourceSettingDAO . listByAuthSource ( authSource ) ; this . settings = new HashMap <> ( ) ; for ( AuthSourceSetting setting : authSourceSettings ) { settings . put ( setting . getKey ( ) , setting . getValue ( ) ) ; } }
Initializes this authentication strategy to work as per the given authentication source .