Apply Spring security.