Example usage for javax.servlet.http HttpServletRequest CLIENT_CERT_AUTH

List of usage examples for javax.servlet.http HttpServletRequest CLIENT_CERT_AUTH

Introduction

In this page you can find the example usage for javax.servlet.http HttpServletRequest CLIENT_CERT_AUTH.

Prototype

String CLIENT_CERT_AUTH

To view the source code for javax.servlet.http HttpServletRequest CLIENT_CERT_AUTH.

Click Source Link

Document

String identifier for Client Certificate authentication.

Usage

From source file:net.lightbody.bmp.proxy.jetty.jetty.servlet.ServletHttpRequest.java

public String getAuthType() {
    String at = _httpRequest.getAuthType();
    if (at == SecurityConstraint.__BASIC_AUTH)
        return HttpServletRequest.BASIC_AUTH;
    if (at == SecurityConstraint.__FORM_AUTH)
        return HttpServletRequest.FORM_AUTH;
    if (at == SecurityConstraint.__DIGEST_AUTH)
        return HttpServletRequest.DIGEST_AUTH;
    if (at == SecurityConstraint.__CERT_AUTH)
        return HttpServletRequest.CLIENT_CERT_AUTH;
    if (at == SecurityConstraint.__CERT_AUTH2)
        return HttpServletRequest.CLIENT_CERT_AUTH;
    return at;/*from  ww  w  .j  av  a  2  s .c  o  m*/
}