NonLoginAuthenticatorpublic final class NonLoginAuthenticator extends AuthenticatorBase An Authenticator and Valve implementation that checks
only security constraints not involving user authentication. |
Fields Summary |
---|
private static final String | NONLOGIN_PRINCIPAL_NAMEPrincipal name of nonlogin principal. | private final org.apache.catalina.realm.GenericPrincipal | NONLOGIN_PRINCIPALA dummy principal that is set to request in authenticate method. | private static final String | infoDescriptive information about this implementation. |
Methods Summary |
---|
public boolean | authenticate(org.apache.catalina.HttpRequest request, org.apache.catalina.HttpResponse response, org.apache.catalina.deploy.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.
if (debug >= 1)
log("User authentication is not required");
//START SJSAS 6202703
HttpServletRequest hreq = (HttpServletRequest) request.getRequest();
if (hreq.getUserPrincipal() == null) {
request.setUserPrincipal(NONLOGIN_PRINCIPAL);
}
//END SJSAS 6202703
return (true);
| public java.lang.String | getInfo()Return descriptive information about this Valve implementation.
// ------------------------------------------------------------- Properties
return (this.info);
|
|