Spring security initialization.