/** {@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 parentObject, XMLObject childObject) throws UnmarshallingException { Conditions conditions = (Conditions) parentObject; if (childObject instanceof Condition) { conditions.getConditions().add((Condition) childObject); } else { super.processChildElement(parentObject, childObject); } }
/** {@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 && !Strings.isNullOrEmpty(assertion.getID())) { domElement.setIdAttributeNS(null, Assertion.ID_ATTRIB_NAME, true); } return assertion; }
/** {@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.getVersion() != SAMLVersion.VERSION_10 && !Strings.isNullOrEmpty(response.getID())) { domElement.setIdAttributeNS(null, ResponseAbstractType.ID_ATTRIB_NAME, true); } return response; }
/** {@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 { if (Action.NAMESPACE_ATTRIB_NAME.equals(attribute.getLocalName())) { Action action = (Action) samlObject; action.setNamespace(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** {@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.getVersion() != SAMLVersion.VERSION_10 && !Strings.isNullOrEmpty(request.getID())) { domElement.setIdAttributeNS(null, RequestAbstractType.ID_ATTRIB_NAME, true); } return request; }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { AudienceRestrictionCondition audienceRestrictionCondition = (AudienceRestrictionCondition) parentSAMLObject; if (childSAMLObject instanceof Audience) { audienceRestrictionCondition.getAudiences().add((Audience) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } } }
/** {@inheritDoc} */ protected void processAttribute(final XMLObject xmlObject, final Attr attribute) throws UnmarshallingException { final DelegationPolicy delegationPolicy = (DelegationPolicy) xmlObject; if (attribute.getLocalName().equals(DelegationPolicy.MAX_DELEGATION_CHAIN_LENGTH_ATTRIB_NAME)) { delegationPolicy.setMaximumTokenDelegationChainLength(Long.valueOf(attribute.getValue())); } else { super.processAttribute(xmlObject, attribute); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { PublicationPath pPath = (PublicationPath) parentObject; if (childObject instanceof Publication) { pPath.getPublications().add((Publication)childObject); } else { super.processChildElement(parentObject, childObject); } }
/** {@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 { 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 { 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 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 { 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 parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { ResponseAbstractType response = (ResponseAbstractType) parentSAMLObject; if (childSAMLObject instanceof Signature) { response.setSignature((Signature) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@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 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 { 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); } }