/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { Action action = (Action) samlObject; if (attribute.getLocalName().equals(Action.NAMEPSACE_ATTRIB_NAME)) { action.setNamespace(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { SubjectStatement statement = (SubjectStatement) parentSAMLObject; if (childSAMLObject instanceof Subject) { statement.setSubject((Subject) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ public XMLObject unmarshall(Element domElement) throws UnmarshallingException { // After regular unmarshalling, check the minor version and set ID-ness if not SAML 1.0 ResponseAbstractType response = (ResponseAbstractType) super.unmarshall(domElement); if (response.getMinorVersion() != 0 && !DatatypeHelper.isEmpty(response.getID())) { domElement.setIdAttributeNS(null, ResponseAbstractType.ID_ATTRIB_NAME, true); } return response; }
/** {@inheritDoc} */ public XMLObject unmarshall(Element domElement) throws UnmarshallingException { // After regular unmarshalling, check the minor version and set ID-ness if not SAML 1.0 RequestAbstractType request = (RequestAbstractType) super.unmarshall(domElement); if (request.getMinorVersion() != 0 && !DatatypeHelper.isEmpty(request.getID())) { domElement.setIdAttributeNS(null, RequestAbstractType.ID_ATTRIB_NAME, true); } return request; }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { if (attribute.getLocalName().equals(AdditionalMetadataLocation.NAMESPACE_ATTRIB_NAME)) { AdditionalMetadataLocation aml = (AdditionalMetadataLocation) samlObject; aml.setNamespaceURI(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { SubjectQuery query = (SubjectQuery) parentSAMLObject; if (childSAMLObject instanceof Subject) { query.setSubject((Subject) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ public XMLObject unmarshall(Element domElement) throws UnmarshallingException { // After regular unmarshalling, check the minor version and set ID-ness if not SAML 1.0 Assertion assertion = (Assertion) super.unmarshall(domElement); if (assertion.getMinorVersion() != 0 && !DatatypeHelper.isEmpty(assertion.getID())) { domElement.setIdAttributeNS(null, Assertion.ID_ATTRIB_NAME, true); } return assertion; }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { Scoping scoping = (Scoping) samlObject; if (attribute.getLocalName().equals(Scoping.PROXY_COUNT_ATTRIB_NAME)) { scoping.setProxyCount(Integer.valueOf(attribute.getValue())); } else { super.processAttribute(samlObject, attribute); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { DelegationRestrictionType drt = (DelegationRestrictionType) parentSAMLObject; if (childSAMLObject instanceof Delegate) { drt.getDelegates().add((Delegate) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { ProxyRestriction proxyRestriction = (ProxyRestriction) samlObject; if (attribute.getLocalName().equals(ProxyRestriction.COUNT_ATTRIB_NAME)) { proxyRestriction.setProxyCount(Integer.valueOf(attribute.getValue())); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { Conditions conditions = (Conditions) parentSAMLObject; if (childSAMLObject instanceof Condition) { conditions.getConditions().add((Condition) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { StatusCode statusCode = (StatusCode) samlObject; if (attribute.getLocalName().equals(StatusCode.VALUE_ATTRIB_NAME)) { statusCode.setValue(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { AudienceRestriction audienceRestriction = (AudienceRestriction) parentObject; if (childObject instanceof Audience) { audienceRestriction.getAudiences().add((Audience) childObject); } else { super.processChildElement(parentObject, childObject); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { if (Action.NAMESPACEATTRIB_NAME.equals(attribute.getLocalName())) { Action action = (Action) samlObject; action.setNamespace(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { StatusCode statusCode = (StatusCode) parentSAMLObject; if (childSAMLObject instanceof StatusCode) { statusCode.setStatusCode((StatusCode) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { SubjectConfirmation subjectConfirmation = (SubjectConfirmation) samlObject; if (attribute.getLocalName().equals(SubjectConfirmation.METHOD_ATTRIB_NAME)) { subjectConfirmation.setMethod(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { StatusCode statusCode = (StatusCode) parentSAMLObject; if (childSAMLObject instanceof StatusCode) { statusCode.setStatusCode((StatusCode) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { SubjectLocality subjectLocality = (SubjectLocality) samlObject; if (SubjectLocality.DNSADDRESS_ATTRIB_NAME.equals(attribute.getLocalName())) { subjectLocality.setDNSAddress(attribute.getValue()); } else if (SubjectLocality.IPADDRESS_ATTRIB_NAME.equals(attribute.getLocalName())) { subjectLocality.setIPAddress(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { SubjectConfirmation sc = (SubjectConfirmation) parentObject; if (childObject instanceof SubjectConfirmationData) { sc.setSubjectConfirmationData((SubjectConfirmationData) childObject); } else { super.processChildElement(parentObject, childObject); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { AttributeDesignator designator = (AttributeDesignator) samlObject; if (AttributeDesignator.ATTRIBUTENAME_ATTRIB_NAME.equals(attribute.getLocalName())) { designator.setAttributeName(attribute.getValue()); } else if (AttributeDesignator.ATTRIBUTENAMESPACE_ATTRIB_NAME.equals(attribute.getLocalName())) { designator.setAttributeNamespace(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }