protected SingleSignOnService getHoKSingleSignOnService(String entityBaseURL, String entityAlias, String filterURL, String binding) { SingleSignOnService hokSso = getSingleSignOnService(entityBaseURL, entityAlias, filterURL, org.springframework.security.saml.SAMLConstants.SAML2_HOK_WEBSSO_PROFILE_URI); QName consumerName = new QName(org.springframework.security.saml.SAMLConstants.SAML2_HOK_WEBSSO_PROFILE_URI, AuthnRequest.PROTOCOL_BINDING_ATTRIB_NAME, "hoksso"); hokSso.getUnknownAttributes().put(consumerName, binding); return hokSso; }
/** {@inheritDoc} */ public void putAll(Map<? extends QName, ? extends String> t) { if (t != null && t.size() > 0) { for (Entry<? extends QName, ? extends String> entry : t.entrySet()) { put(entry.getKey(), entry.getValue()); } } }
/** {@inheritDoc} */ public void putAll(Map<? extends QName, ? extends String> t) { if (t != null && t.size() > 0) { for (Entry<? extends QName, ? extends String> entry : t.entrySet()) { put(entry.getKey(), entry.getValue()); } } }
/** {@inheritDoc} */ public void setScope(String newScope) { scope = prepareForAssignment(scope, newScope); if (scope != null && scopeAttributeName != null) { getUnknownAttributes().put(new QName(scopeAttributeName), scope); } }
protected AssertionConsumerService getHoKAssertionConsumerService(String entityBaseURL, String entityAlias, boolean isDefault, int index, String filterURL, String binding) { AssertionConsumerService hokAssertionConsumer = getAssertionConsumerService(entityBaseURL, entityAlias, isDefault, index, filterURL, org.springframework.security.saml.SAMLConstants.SAML2_HOK_WEBSSO_PROFILE_URI); QName consumerName = new QName(org.springframework.security.saml.SAMLConstants.SAML2_HOK_WEBSSO_PROFILE_URI, AuthnRequest.PROTOCOL_BINDING_ATTRIB_NAME, "hoksso"); hokAssertionConsumer.getUnknownAttributes().put(consumerName, binding); return hokAssertionConsumer; }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { Body body = (Body) xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); if (attribute.isId()) { body.getUnknownAttributes().registerID(attribQName); } body.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { XSAny xsAny = (XSAny) xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); if (attribute.isId()) { xsAny.getUnknownAttributes().registerID(attribQName); } xsAny.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** * Unmarshall a DOM Attr to an AttributeMap. * * @param attributeMap the target AttributeMap * @param attribute the target DOM Attr */ public static void unmarshallToAttributeMap(AttributeMap attributeMap, Attr attribute) { QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); attributeMap.put(attribQName, attribute.getValue()); if (attribute.isId() || Configuration.isIDAttribute(attribQName)) { attributeMap.registerID(attribQName); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { AuthnContextDecl authnCtcDecl = (AuthnContextDecl) xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); if (attribute.isId()) { authnCtcDecl.getUnknownAttributes().registerID(attribQName); } authnCtcDecl.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { Header header = (Header) xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); if (attribute.isId()) { header.getUnknownAttributes().registerID(attribQName); } header.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { XSAny xsAny = (XSAny) xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); if (attribute.isId()) { xsAny.getUnknownAttributes().registerID(attribQName); } xsAny.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { Envelope envelope = (Envelope) xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); if (attribute.isId()) { envelope.getUnknownAttributes().registerID(attribQName); } envelope.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { Detail detail = (Detail) xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix()); if (attribute.isId()) { detail.getUnknownAttributes().registerID(attribQName); } detail.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { ShibbolethMetadataKeyAuthority authority = (ShibbolethMetadataKeyAuthority) xmlObject; if (attribute.getLocalName().equals(ShibbolethMetadataKeyAuthority.VERIFY_DEPTH_ATTRIB_NAME)) { authority.setVerifyDepth(Integer.valueOf(attribute.getValue())); } else { QName attribQName = XMLHelper.getNodeQName(attribute); if (attribute.isId()) { authority.getUnknownAttributes().registerID(attribQName); } authority.getUnknownAttributes().put(attribQName, attribute.getValue()); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { AttributeValueType attributeValue = (AttributeValueType) xmlObject; QName attribQName = XMLHelper.getNodeQName(attribute); if (attribute.isId()) { attributeValue.getUnknownAttributes().registerID(attribQName); } attributeValue.getUnknownAttributes().put(attribQName, attribute.getValue()); if(attribute.getLocalName().equals(AttributeValueType.DATA_TYPE_ATTRIB_NAME)){ attributeValue.setDataType(DatatypeHelper.safeTrimOrNullString(attribute.getValue())); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { ResourceContentType resourceContent = (ResourceContentType) xmlObject; QName attribQName = XMLHelper.getNodeQName(attribute); if (attribute.isId()) { resourceContent.getUnknownAttributes().registerID(attribQName); } resourceContent.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { AttributeValueType attributeValue = (AttributeValueType) xmlObject; QName attribQName = XMLHelper.getNodeQName(attribute); if (attribute.isId()) { attributeValue.getUnknownAttributes().registerID(attribQName); } attributeValue.getUnknownAttributes().put(attribQName, attribute.getValue()); }
/** * {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { Organization org = (Organization) samlObject; QName attribQName = XMLHelper.getNodeQName(attribute); if (attribute.isId()) { org.getUnknownAttributes().registerID(attribQName); } org.getUnknownAttributes().put(attribQName, attribute.getValue()); } }
public static XSAny createAttributeValue(String value, String type) { XSAny ep = createAttributeValue(); ep.setTextContent(String.valueOf(value)); ep.getUnknownAttributes().put(XSI_TYPE_ATTRIBUTE_NAME, type); ep.addNamespace(new Namespace(XMLConstants.XSI_NS, XMLConstants.XSI_PREFIX)); return ep; }
/** {@inheritDoc} */ public void setScopeAttributeName(String newScopeAttributeName) { if (scopeAttributeName != null) { QName oldName = new QName(scopeAttributeName); if (getUnknownAttributes().containsKey(oldName)) { getUnknownAttributes().remove(oldName); } } scopeAttributeName = prepareForAssignment(scopeAttributeName, newScopeAttributeName); if (scope != null) { getUnknownAttributes().put(new QName(scopeAttributeName), scope); } }