org.jboss.resteasy.skeleton.key.as7
Class CatalinaSecurityContextHelper

java.lang.Object
  extended by org.jboss.resteasy.skeleton.key.as7.CatalinaSecurityContextHelper

public class CatalinaSecurityContextHelper
extends Object

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
CatalinaSecurityContextHelper()
           
 
Method Summary
protected  Group createGroup(String name, Set<Principal> principals)
           
 org.apache.catalina.realm.GenericPrincipal createPrincipal(org.apache.catalina.Realm realm, Principal identity, Collection<String> roleSet)
           
protected  Principal getPrincipal(Subject subject)
          Get the Principal given the authenticated Subject.
protected  Group[] getRoleSets(Collection<String> roleSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalinaSecurityContextHelper

public CatalinaSecurityContextHelper()
Method Detail

createPrincipal

public org.apache.catalina.realm.GenericPrincipal createPrincipal(org.apache.catalina.Realm realm,
                                                                  Principal identity,
                                                                  Collection<String> roleSet)

getPrincipal

protected Principal getPrincipal(Subject subject)
Get the Principal given the authenticated Subject. Currently the first principal that is not of type Group is considered or the single principal inside the CallerPrincipal group.

Parameters:
subject -
Returns:
the authenticated principal

createGroup

protected Group createGroup(String name,
                            Set<Principal> principals)

getRoleSets

protected Group[] getRoleSets(Collection<String> roleSet)


Copyright © 2013. All Rights Reserved.