public void setSecurityContext(org.ironjacamar.core.spi.security.SecurityContext context)
   {
      if (context == null)
      {
         SecurityContextAssociation.setSecurityContext(null);
      }
      else if (context instanceof PicketBoxSecurityContext)
      {
         PicketBoxSecurityContext psc = (PicketBoxSecurityContext)context;
         SecurityContextAssociation.setSecurityContext(psc.getDelegator());
      }
      else
      {
         throw new IllegalArgumentException("Invalid SecurityContext: " + context);
      }
   }
public void setSecurityContext ( org . ironjacamar . core . spi . security . SecurityContext context ) { if ( context == null ) { SecurityContextAssociation . setSecurityContext ( null ) ; } else if ( context instanceof PicketBoxSecurityContext ) { PicketBoxSecurityContext psc = ( PicketBoxSecurityContext ) context ; SecurityContextAssociation . setSecurityContext ( psc . getDelegator ( ) ) ; } else { throw new IllegalArgumentException ( "Invalid SecurityContext: " + context ) ; } }
{@inheritDoc}