/** {@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 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 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 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 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 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 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 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 processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { SubjectLocality subjectLocality = (SubjectLocality) samlObject; if (attribute.getLocalName().equals(SubjectLocality.ADDRESS_ATTRIB_NAME)) { subjectLocality.setAddress(attribute.getValue()); } else if (attribute.getLocalName().equals(SubjectLocality.DNS_NAME_ATTRIB_NAME)) { subjectLocality.setDNSName(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } } }
/** {@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); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { BaseID baseID = (BaseID) samlObject; if (attribute.getLocalName().equals(BaseID.NAME_QUALIFIER_ATTRIB_NAME)) { baseID.setNameQualifier(attribute.getValue()); } else if (attribute.getLocalName().equals(BaseID.SP_NAME_QUALIFIER_ATTRIB_NAME)) { baseID.setSPNameQualifier(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { NameIdentifier nameIdentifier = (NameIdentifier) samlObject; if (NameIdentifier.FORMAT_ATTRIB_NAME.equals(attribute.getLocalName())) { nameIdentifier.setFormat(attribute.getValue()); } else if (NameIdentifier.NAMEQUALIFIER_ATTRIB_NAME.equals(attribute.getLocalName())) { nameIdentifier.setNameQualifier(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { AttributeConsumingService service = (AttributeConsumingService) samlObject; if (attribute.getLocalName().equals(AttributeConsumingService.INDEX_ATTRIB_NAME)) { service.setIndex(Integer.valueOf(attribute.getValue())); } else if (attribute.getLocalName().equals(AttributeConsumingService.IS_DEFAULT_ATTRIB_NAME)) { service.setIsDefault(XSBooleanValue.valueOf(attribute.getValue())); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { StatusCode statusCode = (StatusCode) samlObject; if (attribute.getName().equals(StatusCode.VALUE_ATTRIB_NAME)) { statusCode.setValue(XMLHelper.getAttributeValueAsQName(attribute)); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { Delegate delegate = (Delegate) samlObject; String attrName = attribute.getLocalName(); if (Delegate.CONFIRMATION_METHOD_ATTRIB_NAME.equals(attrName)) { delegate.setConfirmationMethod(attribute.getValue()); } else if (Delegate.DELEGATION_INSTANT_ATTRIB_NAME.equals(attrName)) { delegate.setDelegationInstant(new DateTime(attribute.getValue(), ISOChronology.getInstanceUTC())); } else { super.processAttribute(samlObject, attribute); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { AuthorityBinding authorityBinding = (AuthorityBinding) samlObject; if (AuthorityBinding.AUTHORITYKIND_ATTRIB_NAME.equals(attribute.getLocalName())) { authorityBinding.setAuthorityKind(XMLHelper.getAttributeValueAsQName(attribute)); } else if (AuthorityBinding.LOCATION_ATTRIB_NAME.equals(attribute.getLocalName())) { authorityBinding.setLocation(attribute.getValue()); } else if (AuthorityBinding.BINDING_ATTRIB_NAME.equals(attribute.getLocalName())) { authorityBinding.setBinding(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { RequestAuthenticated ra = (RequestAuthenticated) xmlObject; QName attrName = XMLHelper.getNodeQName(attribute); if (RequestAuthenticated.SOAP11_MUST_UNDERSTAND_ATTR_NAME.equals(attrName)) { ra.setSOAP11MustUnderstand(XSBooleanValue.valueOf(attribute.getValue())); } else if (RequestAuthenticated.SOAP11_ACTOR_ATTR_NAME.equals(attrName)) { ra.setSOAP11Actor(attribute.getValue()); } else { super.processAttribute(xmlObject, attribute); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { AuthnStatement authnStatement = (AuthnStatement) samlObject; if (attribute.getLocalName().equals(AuthnStatement.AUTHN_INSTANT_ATTRIB_NAME) && !DatatypeHelper.isEmpty(attribute.getValue())) { authnStatement.setAuthnInstant(new DateTime(attribute.getValue(), ISOChronology.getInstanceUTC())); } else if (attribute.getLocalName().equals(AuthnStatement.SESSION_INDEX_ATTRIB_NAME)) { authnStatement.setSessionIndex(attribute.getValue()); } else if (attribute.getLocalName().equals(AuthnStatement.SESSION_NOT_ON_OR_AFTER_ATTRIB_NAME) && !DatatypeHelper.isEmpty(attribute.getValue())) { authnStatement.setSessionNotOnOrAfter(new DateTime(attribute.getValue(), ISOChronology.getInstanceUTC())); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { Conditions conditions = (Conditions) samlObject; if (attribute.getLocalName().equals(Conditions.NOT_BEFORE_ATTRIB_NAME) && !DatatypeHelper.isEmpty(attribute.getValue())) { conditions.setNotBefore(new DateTime(attribute.getValue(), ISOChronology.getInstanceUTC())); } else if (attribute.getLocalName().equals(Conditions.NOT_ON_OR_AFTER_ATTRIB_NAME) && !DatatypeHelper.isEmpty(attribute.getValue())) { conditions.setNotOnOrAfter(new DateTime(attribute.getValue(), ISOChronology.getInstanceUTC())); } else { super.processAttribute(samlObject, attribute); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { SessionKey key = (SessionKey) samlObject; QName attrName = XMLHelper.getNodeQName(attribute); if (SessionKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME.equals(attrName)) { key.setSOAP11MustUnderstand(XSBooleanValue.valueOf(attribute.getValue())); } else if (SessionKey.SOAP11_ACTOR_ATTR_NAME.equals(attrName)) { key.setSOAP11Actor(attribute.getValue()); } else if (attribute.getLocalName().equals(SessionKey.ALGORITHM_ATTRIB_NAME)) { key.setAlgorithm(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }