/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 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]"
*
*
*
*/
/**
*This class is used to parse the metadata from the xml files
*
*/
public class MetaDataParser {
public MetaDataParser() {
} else {
}
}
}
/**
*get SP Meta Alias
*
*/
{
try {
// get first one
}
return spMetaAlias;
} catch (SAML2MetaException ex) {
}
return spMetaAlias;
}
/**
*get SP Entity ID
*
*/
{
try {
}
return spEntityID;
} catch (SAML2MetaException ex) {
}
return spEntityID;
}
/**
*get IDP Entity ID
*
*/
{
try {
}
return idpEntityID;
} catch (SAML2MetaException ex) {
}
return idpEntityID;
}
/**
*get IDP Meta Alias
*
*/
{
{
}
return idpMetaAlias;
}
/**
*get IDP base URL
*
*/
{
{
}
return idpBaseUrl;
}
/**
*get SSO URL
*
*/
{
try {
if ((ssoServiceList != null)
&& (!ssoServiceList.isEmpty())) {
while (i.hasNext()) {
(SingleSignOnServiceElement) i.next();
if (loc == -1) {
continue;
} else {
return ssoURL;
}
}
}
}
return null;
} catch (SAML2MetaException ex) {
}
return null;
}
{
try {
return acs.getLocation();
}
return null;
} catch (SAML2MetaException ex) {
}
return null;
}
/**
*get a COT
*
*/
try {
if (spEntityCfg != null) {
}
} catch (SAML2MetaException ex) {
}
}
/**
*create cot file
*
*/
public void createCOT(){
try {
} catch (IOException ex) {
}
}
}