Java Code Examples for javax.servlet.http.HttpServletRequest#FORM_AUTH

The following examples show how to use javax.servlet.http.HttpServletRequest#FORM_AUTH . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public String getAuthType ()
{
    final Principal user = getUserPrincipal ();
    if ( user != null )
    {
        return HttpServletRequest.FORM_AUTH;
    }
    else
    {
        return null;
    }
}
 
Example 2
Source Project: Tomcat8-Source-Read   File: FormAuthenticator.java    License: MIT License 4 votes vote down vote up
@Override
protected String getAuthMethod() {
    return HttpServletRequest.FORM_AUTH;
}
 
Example 3
Source Project: Tomcat7.0.67   File: FormAuthenticator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected String getAuthMethod() {
    return HttpServletRequest.FORM_AUTH;
}
 
Example 4
Source Project: tomcatsrc   File: FormAuthenticator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected String getAuthMethod() {
    return HttpServletRequest.FORM_AUTH;
}
 
Example 5
Source Project: yawp   File: AppengineAuthenticator.java    License: MIT License 4 votes vote down vote up
@Override
public String getAuthMethod() {
    return HttpServletRequest.FORM_AUTH;
}