[jboss-as7-dev] SecurityAssociation, getCallerPrincipal() returns null

Anil Saldhana Anil.Saldhana at redhat.com
Fri May 20 09:27:07 EDT 2011


Hi Christoph,
   SecurityAssociation class was deprecated in AS5/6.  It will be 
removed in AS7.

Regards,
Anil

On 05/20/2011 05:11 AM, Christoph Gostner wrote:
> Hello,
>
> I'm testing the authentication mechanism in JBoss AS 7.
> I tried to access the caller principal (mainly to display the 
> princiapl's name).
> But the Method SecurityAssociation.getCallerPrincipal() always returns 
> null.
>       if(!server)
>          return principal;
> where principal is null
>
> I tested it with BasicAuthentication and JBoss Negotiation, in both cases
> the caller principal is null. Compared to JBoss AS 5, the principal is 
> set.
>
> Could this be an error or is the method not implemented correctly (yet)?
>
> Regards,
> Christoph


More information about the jboss-as7-dev mailing list