/**
* 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: AuthViewBeanBase.java,v 1.13 2010/01/22 03:31:35 222713 Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS.
* Portions Copyrighted 2013-2015 Nomura Research Institute, Ltd.
*/
/**
* This class is a default implementation of <code>ViewBean</code> auth UI.
*/
"goto", "encoded", "IDtoken0", "IDtoken1", "IDtoken2", "IDButton", "AMAuthCookie", "IDToken3"
};
/**
* Creates <code>AuthViewBeanBase</code> object.
* @param pageName name of page for auth UI.
*/
super(pageName);
}
/** registers child views */
protected void registerChildren() {
}
}
throw new IllegalArgumentException(
}
/** Set the codeset of the page **/
}
}
if (loginDebug.messageEnabled()) {
}
}
/**
* Returns the validated and Base64 ecoded query params value.
* @param request from which query parameters have to be extracted.
* @return a String the validated and Base64 ecoded query params String
*/
{
// create a map to exclude the duplication of the SunQueryParamsString
for (; parameters.hasMoreElements();) {
boolean ignore = false;
ignore = true;
break;
}
}
if (loginDebug.messageEnabled()) {
+ parameter);
}
if (!ignore) {
try {
}
} catch (Exception e) {
+ "failed to decode SunQueryParamsString. ", e);
}
} else {
}
}
}
int cnt = 0;
cnt++;
if (loginDebug.messageEnabled()) {
}
}
}
}
if (loginDebug.messageEnabled()) {
+":"+ queryParamsString);
}
if ((queryParamsString != null) &&
{
}
if (loginDebug.messageEnabled()) {
}
return returnQueryParams;
}
/**
* Returns the validated and Base64 ecoded URL value.
* @param inputURL input URL string value
* @param encoded value of "encoded" parameter to tell wheather
* the inputURL is already encoded or not
* @param request HttpServletRequest object
* @return a String the validated and Base64 ecoded URL value
*/
return returnURL;
}
}
}
if (loginDebug.messageEnabled()) {
}
return returnURL;
}
/**
* Returns the Base64 ecoded URL value.
* @param inputURL input URL string value
* @param request HttpServletRequest object
* @return a String the Base64 ecoded URL value
*/
try {
} catch (MalformedURLException mfe) {
if (index != -1) {
} else {
if (index != -1) {
}
}
try {
} catch (MalformedURLException mfe1) {
returnURL = "";
}
}
try {
} catch (UnsupportedEncodingException ueex) {
"UnsupportedEncodingException");
returnURL = "";
}
}
if (loginDebug.messageEnabled()) {
}
return returnURL;
}
/**
* Returns the Base64 ecoded URL value.
* @param inputValue input string value
* @return a String the Base64 ecoded URL value
*/
try {
} catch (UnsupportedEncodingException ueex) {
"UnsupportedEncodingException");
}
}
if (loginDebug.messageEnabled()) {
+ returnValue);
}
return returnValue;
}
/**
* Returns <code>Locale</code> for auth request.
* @return <code>Locale</code> for auth request.
*/
return accLocale;
}
/**
* Returns tile index for auth UI.
* @return tile index for auth UI.
*/
/**
* Parameter name for page encoding.
*/
/**
* Parameter name for service uri.
*/
/**
* Configured service uri.
*/
//to be used in case session is destroyed
/**
* When HTTP request is made, we get authcontext and get current locale and
* store it in fallbackLocale. Before the login page is displayed, login
* modules can have LoginState object which has the locale settings. But
* after going through login process LoginState might have changed locale
* based on user preference or LoginState may not exist if LoginFailure in
* such case we need to fallback to this locale for responding to user
*/
/**
* Resource bundle with <code>Locale</code>
*/
}