Featured
-
How to split a String
Below I have written a code to split a string.
by shahbaz.ahmmod -
Send Push Notification with Custom Data to iPhone device from Java Server Side
This blog will help you to send Push Notifications
by babita.dhami -
Tomcat and Eclipse Integration Error : “Unknown version of Tomcat was specified”
If you are adding Server in Eclipse for Tomcat, an
by chandan.ahluwalia -
Spring MVC and MongoDB
Repository Class Using MongoDB : Spring has th
by sumit.vyas -
How to create DLL file from java?
Hello Guy's This Blog will guide how to create D
by bhagwan.khichar
Tags
Spring Security: Obtaining current username (i.e. SecurityContext) information in a bean?
Instead of calling static method inside the controller like below:
@RequestMapping(value="/welcome", method = RequestMethod.GET)
public String getUserDetails(ModelMap model) {
Authentication authentication = SecurityContextHolder.getCont...
Sprint Security: Getting Active user's UserDetails
We can easily get active user's UserDetails in Spring Security. Spring Security provides "org.springframework.security.core.Authentication" which provides the required API for retrieving the logged in user details. The methods of this class are g...
Spring Security - UserDetailsService vs. AuthenticationProvider
We can use Custome UserDetailsService and custom AuthenticationProvider for user authentication in Spring Security. Here I'm taking example of custom UserDetailsService.
UserDetailsService is a Core interface which loads user-specific data. I...