Package org.rest.common.security

Examples of org.rest.common.security.SpringSecurityPrincipal


                privilegesFromRest.addAll(Collections2.transform(role.getPrivileges(), Functions.toStringFunction()));
            }
            final String[] authorityStringsAsArray = privilegesFromRest.toArray(new String[privilegesFromRest.size()]);
            final List<GrantedAuthority> authorities = AuthorityUtils.createAuthorityList(authorityStringsAsArray);

            loadedUser = new SpringSecurityPrincipal(name, password, true, authorities, "principalFromRest.getUuid()");
        } catch (final Exception repositoryProblem) {
            throw new AuthenticationServiceException(repositoryProblem.getMessage(), repositoryProblem);
        }

        return loadedUser;
View Full Code Here

TOP

Related Classes of org.rest.common.security.SpringSecurityPrincipal

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.