Package org.exoplatform.services.security.jaas

Examples of org.exoplatform.services.security.jaas.RolePrincipal


      {

         Set<Principal> principals = subject.getPrincipals();

         for (String role : identity.getRoles())
            principals.add(new RolePrincipal(role));

         // username principal
         principals.add(new UserPrincipal(identity.getUserId()));

         return true;
View Full Code Here

TOP

Related Classes of org.exoplatform.services.security.jaas.RolePrincipal

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.