Package org.jboss.security.plugins

Examples of org.jboss.security.plugins.JBossSecurityContextUtil


    Principal p = context.getCallerPrincipal();
    return p.getName();
    */

    SecurityContext securityContext = SecurityContextAssociation.getSecurityContext();
    SimplePrincipal sp = (SimplePrincipal) new JBossSecurityContextUtil(securityContext).getUserPrincipal();
    Subject s = new JBossSecurityContextUtil(securityContext).getSubject();
   
    StringBuilder b = new StringBuilder();

    b.append(sp.getName() + ", ");
    for(Principal p : s.getPrincipals())
View Full Code Here

TOP

Related Classes of org.jboss.security.plugins.JBossSecurityContextUtil

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.