SAMLv2SPAssertionContentViewBean.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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: SAMLv2SPAssertionContentViewBean.java,v 1.6 2008/12/11 18:52:06 babysunil Exp $
*
*/
public class SAMLv2SPAssertionContentViewBean extends SAMLv2Base {
public static final String DEFAULT_DISPLAY_URL =
public static final String TBL_AUTHENTICATION_CONTEXTS =
"tblAuthenticationContext";
public static final String TBL_COL_CONTEXT_REFERENCE =
"tblColContextReference";
public static final String TBL_DATA_CONTEXT_REFERENCE =
"tblDataContextReference";
protected CCActionTableModel tblAuthContextsModel;
public SAMLv2SPAssertionContentViewBean() {
super("SAMLv2SPAssertionContent");
}
protected void registerChildren() {
super.registerChildren();
if(isHosted()){
AMTableTiledView.class);
}
}
this, tblAuthContextsModel, name);
} else {
}
return view;
}
throws ModelControlException {
super.beginDisplay(event);
if (isHosted()) {
try {
} catch (AMConsoleException e){
e.getMessage());
}
}
}
// We know that names from model contains 25 elements
for (int i = 0; i < sz; i++) {
}
}
private void populateAuthenticationContext(
int index
) {
if (index != 0) {
}
if (authContexts != null) {
}
if (authContextObj == null) {
}else{
if(authContextObj.isDefault){
}
}
}
}
protected void createPropertyModel() {
if (isHosted()) {
psModel = new AMPropertySheetModel(
} else {
psModel = new AMPropertySheetModel(
}
}
private void createAuthContextsModel() {
"samlv2.sp.authenticationContext.table.name.supported.name");
"samlv2.sp.authenticationContext.table.name.contextReference.name");
"samlv2.sp.authenticationContext.table.name.level.name");
}
private SAMLv2AuthContexts getAuthenticationContexts()
throws ModelControlException
{
for (int i = 0; i < AUTH_CONTEXT_REF_COUNT; i++) {
boolean isDefault = false;
isDefault = true;
supported = "true";
}
}
return authContexts;
}
throws ModelControlException {
try {
//retrieve the standard metadata values from the property sheet
//retrieve the extended metadata values from the property sheet
//save the standard metadata values for the Idp
acsList);
//save the extended metadata values for the Idp
location);
if (isHosted()) {
// update Authentication Contexts
//save the encryption and signing info
spStdValues, false);
}
"samlv2.sp.property.updated");
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
private Map getStandardValues() {
try {
//gets standard metadata values
realm, entityName);
} catch (AMConsoleException e) {
e.getMessage() );
}
return map;
}
private Map getExtendedValues() {
try {
//gets extended metadata values
realm, entityName);
//the list of values is converted to a set
}
} catch (AMConsoleException e) {
e.getMessage() );
}
return extendedValues;
}
}