org.glassfish.grizzly.http.server.Request.setUserPrincipal()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中org.glassfish.grizzly.http.server.Request.setUserPrincipal方法的一些代码示例,展示了Request.setUserPrincipal的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setUserPrincipal方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:setUserPrincipal

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()));

相关文章

Request类方法