ClientLoginModule

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ClientLoginModule

Jan Lanik
Hi,

I have a few questions concerning the client login module.

1) Java doc says "This simply sets
 the SecurityContext principal to the value of the NameCallback"

How can I get to the "SecurityContext principal"?

2) Is this supposed to be used in container or from servlet or even from remote application?
Is there some usage example?

Thanks, Jan
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: ClientLoginModule

Stefan Guilhen
On 04/04/2012 03:58 AM, Jan Lanik wrote:
> Hi,
>
> I have a few questions concerning the client login module.
>
> 1) Java doc says "This simply sets
>   the SecurityContext principal to the value of the NameCallback"
>
> How can I get to the "SecurityContext principal"?

ClientLoginModule is used to setup the client-side security context.
This context is later used by a client-side security interceptor that
retrieves the security info and sends it along with the invocation. See
org.jboss.security.SecurityAssociationActions - this class provides
utility methods to retrieve the contents of the security context.

>
> 2) Is this supposed to be used in container or from servlet or even from remote application?
> Is there some usage example?

AFAIK this can be used anywhere.

Found an usage example here:
https://github.com/jbossas/jboss-as/blob/master/testsuite/shared/src/main/java/org/jboss/as/test/shared/integration/ejb/security/Util.java

Stefan
>
> Thanks, Jan
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev