javax.servlet.http.HttpServletRequestWrapper.getAuthType()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(137)

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

HttpServletRequestWrapper.getAuthType介绍

[英]The default behavior of this method is to return getAuthType() on the wrapped request object.
[中]此方法的默认行为是在包装的请求对象上返回getAuthType()。

代码示例

代码示例来源:origin: cloudfoundry/uaa

@Override
public String getAuthType() {
  return super.getAuthType();
}

代码示例来源:origin: com.atlassian.jira/jira-core

@Override
public String getAuthType()
{
  String authType = super.getAuthType();
  return authType;
}

代码示例来源:origin: com.github.wuic/wuic-servlet

/**
 * {@inheritDoc}
 */
@Override
public String getAuthType() {
  // Synchronized access
  synchronized (mutex) {
    return super.getAuthType();
  }
}

代码示例来源:origin: org.jasig.portal/uPortal-rendering

@Override
public String getAuthType() {
  this.checkState();
  return super.getAuthType();
}

代码示例来源:origin: org.apache.felix/org.apache.felix.http.base

@Override
public String getAuthType()
{
  String authType = (String) getAttribute(HttpContext.AUTHENTICATION_TYPE);
  if (authType == null)
  {
    authType = super.getAuthType();
  }
  return authType;
}

代码示例来源:origin: OpenNMS/opennms

@Override
public String getAuthType() {
  String authType = (String) getAttribute(HttpContext.AUTHENTICATION_TYPE);
  if (authType == null) {
    authType = super.getAuthType();
  }
  return authType;
}

代码示例来源:origin: apache/felix

@Override
public String getAuthType()
{
  String authType = (String) getAttribute(HttpContext.AUTHENTICATION_TYPE);
  if (authType == null)
  {
    authType = super.getAuthType();
  }
  return authType;
}

代码示例来源:origin: Jasig/uPortal

@Override
public String getAuthType() {
  this.checkState();
  return super.getAuthType();
}

代码示例来源:origin: org.opennms.container/org.opennms.container.bridge

@Override
public String getAuthType() {
  String authType = (String) getAttribute(HttpContext.AUTHENTICATION_TYPE);
  if (authType == null) {
    authType = super.getAuthType();
  }
  return authType;
}

代码示例来源:origin: org.codelibs/spnego

/**
 * Returns "Negotiate" or "Basic" else default auth type.
 * 
 * @see javax.servlet.http.HttpServletRequest#getAuthType()
 */
@Override
public String getAuthType() {
  
  final String authType;
  final String header = this.getHeader(Constants.AUTHZ_HEADER);
  
  if (null == header) {
    authType = super.getAuthType();
    
  } else if (header.startsWith(Constants.NEGOTIATE_HEADER)) {
    authType = Constants.NEGOTIATE_HEADER;
  } else if (header.startsWith(Constants.BASIC_HEADER)) {
    authType = Constants.BASIC_HEADER;
    
  } else {
    authType = super.getAuthType();
  }
  
  return authType;
}

代码示例来源:origin: org.apache.wink/wink-server

@Override
public String getAuthType() {
  return getCorrectRequest().getAuthType();
}

相关文章

HttpServletRequestWrapper类方法