本文整理了Java中org.glassfish.grizzly.http.server.Request.setUserPrincipal
方法的一些代码示例,展示了Request.setUserPrincipal
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setUserPrincipal
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:setUserPrincipal
[英]Set the Principal who has been authenticated for this Request. This value is also used to calculate the value to be returned by the getRemoteUser()
method.
[中]设置已对此请求进行身份验证的主体。此值还用于计算getRemoteUser()
方法返回的值。
代码示例来源:origin: javaee/grizzly
public void updateUserPrincipal(Request grizzlyRequest) {
final GlassfishSession gfSession = doGetSession(false);
if (gfSession != null) {
grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
}
}
代码示例来源:origin: javaee/grizzly
public void updateUserPrincipal(Request grizzlyRequest) {
final GlassfishSession gfSession = doGetSession(false);
if (gfSession != null) {
grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
}
}
代码示例来源:origin: javaee/grizzly
public void updateUserPrincipal(Request grizzlyRequest) {
final GlassfishSession gfSession = doGetSession(false);
if (gfSession != null) {
grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
public void updateUserPrincipal(Request grizzlyRequest) {
final GlassfishSession gfSession = doGetSession(false);
if (gfSession != null) {
grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
}
}
代码示例来源:origin: javaee/grizzly
public void updateUserPrincipal(Request grizzlyRequest) {
final GlassfishSession gfSession = doGetSession(false);
if (gfSession != null) {
grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
}
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-websockets
public void updateUserPrincipal(Request grizzlyRequest) {
final GlassfishSession gfSession = doGetSession(false);
if (gfSession != null) {
grizzlyRequest.setUserPrincipal(gfSession.getPrincipal());
grizzlyRequest.getRequest().authType().setString(gfSession.getAuthType());
}
}
代码示例来源:origin: com.bitplan.rest/com.bitplan.simplerest
request.setUserPrincipal(principal);
代码示例来源:origin: javaee/grizzly
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: javaee/grizzly
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: javaee/grizzly
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: javaee/grizzly
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: javaee/grizzly
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: javaee/grizzly
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: javaee/grizzly
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
setUserPrincipal(new GrizzlyPrincipal(remoteUser.toString()));
内容来源于网络,如有侵权,请联系作者删除!