Example usage for javax.servlet.http HttpServletRequest BASIC_AUTH

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

Introduction

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

Prototype

String BASIC_AUTH

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

Click Source Link

Document

String identifier for Basic authentication.

Usage

From source file:org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.java

@Override
protected boolean isLoginAttempt(String authzHeader) {
    // handle BASIC in the same way as our faked one
    String authzHeaderScheme = getAuthzScheme().toLowerCase();

    if (authzHeader.toLowerCase().startsWith(HttpServletRequest.BASIC_AUTH.toLowerCase())) {
        return true;
    } else {// w ww  .j  a  va 2  s. c o  m
        return super.isLoginAttempt(authzHeaderScheme);
    }
}

From source file:org.sventon.web.HttpBasicAuthenticationHandler.java

@Override
public String getAuthScheme() {
    return HttpServletRequest.BASIC_AUTH;
}