Announcement Announcement Module
Collapse
No announcement yet.
A basic Spring Security usage scenario: integrating with application user login/logou Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • A basic Spring Security usage scenario: integrating with application user login/logou

    I have a user login mechanism in place. And a user can have one or more roles based on my understanding of the Role definition within Spring Security.
    Code:
    public class User {
    
    	public static String USER = "ROLE_USER", ADMIN ="ROLE_ADMIN";
    ...
    	private Set<String> roles = new HashSet<String>();
    
    	private String password;
    	
    	private String userName;
    ...
    	public void addRole(String role) {
    		roles.add(role);
    	}
    ...
    }
    My question is how to integrate my application login/logout mechanism with Spring Security? I have looked through those samples linked to the sample and tutorial page and haven't seen a related sample.

    Do I miss something for this basic case?
    Last edited by vw729; Nov 30th, 2009, 02:54 PM.
Working...
X