Package org.cognitor.server.platform.security

Examples of org.cognitor.server.platform.security.UserDetailsImpl


    @Before
    public void setUp() {
        controller = new OpenIdController(openIdManagerMock);
        User user = new User("testUser", "testPassword");
        user.setId(1L);
        userDetails = new UserDetailsImpl(user);
    }
View Full Code Here


    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException {
        final User user = userDao.load(username);
        if (user == null) {
            throw new UsernameNotFoundException("User " + username + " not found.");
        }
        return new UserDetailsImpl(user);
    }
View Full Code Here

TOP

Related Classes of org.cognitor.server.platform.security.UserDetailsImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.