AMModuleProperties.java revision f56a278c148b90f6c2a675e0c1fa8686ca5abed4
/**
* 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: AMModuleProperties.java,v 1.8 2009/05/02 22:11:28 kevinserwin Exp $
*
*/
/*
* Portions Copyrighted 2011-14 ForgeRock AS
*/
class AMModuleProperties {
private String moduleName;
private int p = 0; // callback of the specific pages
) throws AuthLoginException {
try {
if (servletContext != null) {
}
// remove leading '/' from fileName
}
}
} catch(Exception e) {
null);
} finally {
try {
}
}
}
/**
* Return the list of page
* @return <code>List</code> of page
*/
private List getCallbacks() {
return page;
}
/**
* Return the list of authentication module property
* @param fileName that has module properties
* @return <code>List</code> of module property
* @exception AuthLoginException if fails to get properties from the file.
*/
throws AuthLoginException {
return list;
}
try {
if (servletContext != null) {
};
// remove leading '/' from fileName
}
// file might be empty for modules like Cert,Anonymous etc.
if (debug.messageEnabled()) {
}
synchronized(moduleProps) {
}
return list;
}
} catch (Exception e) {
} finally {
try {
}
}
synchronized(moduleProps) {
}
}
return list;
}
//walk the DOM tree and create the callback array
{
switch(type)
{
case Node.ELEMENT_NODE:
{
p = 0;
template = "";
}
image = "";
}
+ 1;
int t=0;
}
p++;
} else {
}
} else {
}
} else {
}
} else {
}
} else {
}
p++;
} else {
}
} else {
}
} else {
}
} else {
}
p++;
node, "multipleSelectionsAllowed");
int defaultChoice=0;
) {
) {
int len = 0;
) {
len++;
}
for(int i=0; i<len; i++) {
getNodeValue();
"isDefault")).booleanValue()
) {
defaultChoice = i;
}
}
break;
}
}
callbacks[p] = new ChoiceCallback(
} else {
}
} else {
}
} else {
}
} else {
}
p++;
int defaultOption = 0;
) {
int len = 0;
) {
len++;
}
for(int i=0; i<len; i++) {
.getNextSibling().getFirstChild().
getNodeValue();
}
break;
}
}
callbacks[p] = new ConfirmationCallback(
p++;
p++;
if (s.equals("script")) {
} else {
if (s.equals("error")) {
} else if (s.equals("warning")) {
} else { //default to information
}
}
p++;
) {
sub, "isDefault");
}
}
callbacks[p] = new LanguageCallback();
p++;
}
}
p++;
}
}
}
}
if (debug.messageEnabled()) {
+ statusParameter);
}
callbacks[p]=
method);
p++;
}
break;
}//end of element
default:
break;
}//end of switch
//recurse
) {
}
//without this the ending tags will miss
{
//attrtable.put(order, subAttr);
//requiretable.put(order, subRequire);
}
}
}//end of walk
for ( int i = 0; i < len; i++ ) {
return attr.getNodeValue();
}
}
}
return null;
}
}