It won't be allowed when using a security manager unless
your code has been assigned permissions to perform this
access.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message ----- 
From: "John Landers" <[EMAIL PROTECTED]>
To: "Jboss-User" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:04 PM
Subject: Re: [JBoss-user] Q:Bean Security and JMX


> Well I think I can answer my own question partly.
> I did a test and it works but the only problem is that
> it is JBoss specific. Waiting to see if anyone else has any ideas.
> 
> I placed SecurityAssociation.getPrincipal() 
> and 
>     SecurityAssociation.getCredential()
> into an object that the mbean thread has access to
> and before this thread goes to get a reference to the bean
> I called
>     SecurityAssociation.setPrincipal(savedPrincipal);
>     SecurityAssociation.setCredential(savedCredential);
> 
> The bean then assumed the user that I pulled the principal from.
> 
> Is this legal?
> I know it probably is not good practice to use JBoss internals.
> 
> jcl.



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to