HTTPBasic.java revision 2d0a88b18a041738cfe635b45bd1db56af469c91
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: HTTPBasic.java,v 1.5 2009/06/19 17:54:14 ericow Exp $
*
*/
/**
* Portions Copyrighted 2011 ForgeRock AS
*/
/**
* HTTP Basic login module.
*/
public class HTTPBasic extends AMLoginModule {
"iplanet-am-auth-http-basic-module-configured";
private String validatedUserID;
private String userPassword;
private Map currentConfig;
public HTTPBasic() {
}
if (debug.messageEnabled()) {
}
try {
} catch (Exception e) {
}
}
try {
AMAuthenticationManager amAM = new
exp);
}
}
throws LoginException {
}
int status = 0;
}
null);
}
try {
}
if (debug.messageEnabled()) {
}
return retVal;
if (ex instanceof InvalidPasswordException) {
throw new InvalidPasswordException(ex);
} else {
}
}
}
if (userPrincipal != null) {
return userPrincipal;
} else if (validatedUserID != null) {
return userPrincipal;
} else {
return null;
}
}
public void destroyModuleState() {
}
public void nullifyUserdVars() {
userPassword = null;
}
throws LoginException,IOException{
}
if (idx != -1) {
}
return authenticateToBackEndModule();
}
private int authenticateToBackEndModule() throws LoginException {
"dummy",false);
}
}