Package org.acegisecurity

Examples of org.acegisecurity.GrantedAuthority


        for (Iterator iterator = grantedRoles.iterator(); iterator.hasNext();) {
            String role = (String) iterator.next();

            for (Iterator grantedIterator = granted.iterator();
                grantedIterator.hasNext();) {
                GrantedAuthority authority = (GrantedAuthority) grantedIterator
                    .next();

                if (authority.getauthority().equals(role)) {
                    target.add(authority);

                    break;
                }
            }
View Full Code Here


public class Populator implements Serializable, LdapAuthoritiesPopulator {

    @Override
    public GrantedAuthority[] getGrantedAuthorities(LdapUserDetails arg0) throws LdapDataAccessException {
        return new GrantedAuthority[] {
            new GrantedAuthority() {
                @Override
                public String getAuthority() {
                    return "ROLE_AUTH";
                }
        }};
View Full Code Here

        }

        List<String> roles = new LinkedList<String>();
        GrantedAuthority[] authorities = context.getAuthorities();
        for (int i = 0; i < authorities.length; i++) {
            GrantedAuthority authority = authorities[i];
            roles.add(authority.getAuthority());
        }
        return roles;
    }
View Full Code Here

        return true;
    }

    public GrantedAuthority[] getAuthorities() {
        return new GrantedAuthority[]{
                new GrantedAuthority() {
                    public String getAuthority() {
                        return DEFAULT_USER_ROLE;
                    }
                }
        };
View Full Code Here

TOP

Related Classes of org.acegisecurity.GrantedAuthority

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.