org.eclipse.jetty.server.Request.getUserPrincipal()方法的使用及代码示例

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

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

Request.getUserPrincipal介绍

暂无

代码示例

代码示例来源:origin: jersey/jersey

@Override
public Principal getUserPrincipal() {
  return request.getUserPrincipal();
}

代码示例来源:origin: org.eclipse.jetty/jetty-security

if (roleInfo.isAnyAuth() &&  request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

@Override
public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

@Override
public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

@Override
public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: org.eclipse.jetty/server

public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: Nextdoor/bender

@Override
public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: jenkinsci/winstone

@Override
public String getRemoteUser()
{
  Principal p = getUserPrincipal();
  if (p == null)
    return null;
  return p.getName();
}

代码示例来源:origin: Nextdoor/bender

if (roleInfo.isAnyAuth() &&  request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.security

if (roleInfo.isAnyAuth() &&  request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)

代码示例来源:origin: jenkinsci/winstone

if (roleInfo.isAnyAuth() &&  request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)

代码示例来源:origin: com.teradata.airlift/http-server

public static HttpRequestEvent createHttpRequestEvent(Request request, Response response, TraceTokenManager traceTokenManager, long currentTimeInMillis)
  Principal principal = request.getUserPrincipal();
  if (principal != null) {
    user = principal.getName();

代码示例来源:origin: com.proofpoint.platform/http-server

Principal principal = request.getUserPrincipal();
if (principal != null) {
  user = principal.getName();

代码示例来源:origin: io.airlift/http-server

Principal principal = request.getUserPrincipal();
if (principal != null) {
  user = principal.getName();

代码示例来源:origin: com.teradata.airlift/http-server

when(request.getAttribute(TimingFilter.FIRST_BYTE_TIME)).thenReturn(timestamp + timeToFirstByte);
when(request.getRequestURI()).thenReturn(uri.toString());
when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);

代码示例来源:origin: io.airlift/http-server

when(request.getAttribute(TimingFilter.FIRST_BYTE_TIME)).thenReturn(timestamp + timeToFirstByte);
when(request.getRequestURI()).thenReturn(uri.toString());
when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);

相关文章

Request类方法