org.apache.catalina.authenticator

Class BasicAuthenticator

public class BasicAuthenticator extends AuthenticatorBase

An Authenticator and Valve implementation of HTTP BASIC Authentication, as outlined in RFC 2617: "HTTP Authentication: Basic and Digest Access Authentication."

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Field Summary
static byte[]AUTHENTICATE_BYTES
Authenticate bytes.
protected static Stringinfo
Descriptive information about this implementation.
Method Summary
booleanauthenticate(Request request, Response response, LoginConfig config)
Authenticate the user making this request, based on the specified login configuration.
StringgetInfo()
Return descriptive information about this Valve implementation.

Field Detail

AUTHENTICATE_BYTES

public static final byte[] AUTHENTICATE_BYTES
Authenticate bytes.

info

protected static final String info
Descriptive information about this implementation.

Method Detail

authenticate

public boolean authenticate(Request request, Response response, LoginConfig config)
Authenticate the user making this request, based on the specified login configuration. Return true if any specified constraint has been satisfied, or false if we have created a response challenge already.

Parameters: request Request we are processing response Response we are creating config Login configuration describing how authentication should be performed

Throws: IOException if an input/output error occurs

getInfo

public String getInfo()
Return descriptive information about this Valve implementation.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.