/**
* 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 generate the SAML reponse and return a string
*
*/
public class AssertionGen {
/**
*Generate SAML response and return the xml string
*
*/
try {
return res.toXMLString(true, true);
} catch (SAML2Exception ex) {
}
return null;
}
/**
*Generate SAML arrestion and return Assertion object
*
*/
{
try {
return assertion;
} catch (SAML2Exception ex) {
}
return assertion;
}
/**
*Add attributes to the SAML assertion
*
*/
}
return attrStatementList;
}
/**
*Generate auth statements and retun a list of auth statements
*
*/
try {
} catch (SAML2Exception ex) {
}
return AuthStatementList;
}
/**
*Add subject to the SAML assertion
*
*/
try {
return subject;
} catch (SAML2Exception ex) {
}
return subject;
}
/**
*Add condition to the SAML assertion
*
*/
try {
} catch (SAML2Exception ex) {
}
return conditions;
}
}