[JIRA] Closed: (JOST-176) SubjectConfirmationUnmarshaller processChildElement misplaces KeyInfo
Chad La Joie (JIRA)
noreply at shibboleth.net
Tue Feb 21 14:10:37 GMT 2012
[ https://issues.shibboleth.net/jira/browse/JOST-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chad La Joie closed JOST-176.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.5.3
Fixed in rev 1562
> SubjectConfirmationUnmarshaller processChildElement misplaces KeyInfo
> ---------------------------------------------------------------------
>
> Key: JOST-176
> URL: https://issues.shibboleth.net/jira/browse/JOST-176
> Project: OpenSAML 2 - Java
> Issue Type: Bug
> Components: SAML 1
> Affects Versions: 2.5.2
> Reporter: frelibert at idp.protectnetwork.org
> Assignee: Chad La Joie
> Fix For: 2.5.3
>
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> ChildObjects of SAML 1.1 SubjectConfirmation can be:
> - ConfirmationMethod
> - SubjectConfirmationData
> - KeyInfo
> The SubjectConfirmationUnmarshaller does not verify if the incoming child is a KeyInfo.
> If it is, it should be placed in KeyInfo.
> There needs to be an extra if between the if/else structure below
> public class SubjectConfirmationUnmarshaller extends AbstractSAMLObjectUnmarshaller {
> /** {@inheritDoc} */
> protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
> throws UnmarshallingException {
> SubjectConfirmation subjectConfirmation = (SubjectConfirmation) parentSAMLObject;
> if (childSAMLObject instanceof ConfirmationMethod) {
> subjectConfirmation.getConfirmationMethods().add((ConfirmationMethod) childSAMLObject);
> } else {
> subjectConfirmation.setSubjectConfirmationData(childSAMLObject);
> }
> }
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list