在应用程序中获取码头领域凭证 [英] Get jetty realm credentials in application

查看:85
本文介绍了在应用程序中获取码头领域凭证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个愚蠢的问题,但是我们在服务器上使用了码头基本认证.现在,我们要在应用程序中使用用户凭证.是否可以在RAP Web应用程序中获得当前登录名?

It might be a stupid question but we are using jetty basic authentication on our server. Now we want to use the usercredentials in our application. Is it possible to get the current login in the RAP webapplication?

谢谢

推荐答案

我不是RAP专家,但是您似乎想这样做:

I'm not a RAP expert, but it looks like you want to do this:

 HttpServletRequest request = RWT.getRequest();
 Principal user = request.getUserPrincipal();

这篇关于在应用程序中获取码头领域凭证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆