private void updateKeyDescriptor(EntityDescriptorType entityD, KeyDescriptorType keyD) { List<EDTDescriptorChoiceType> objs = entityD.getChoiceType().get(0).getDescriptors(); if (objs != null) { for (EDTDescriptorChoiceType roleD : objs) { RoleDescriptorType roleDescriptor = roleD.getRoleDescriptor(); roleDescriptor.addKeyDescriptor(keyD); } } } }
private void updateKeyDescriptor(EntityDescriptorType entityD, KeyDescriptorType keyD) { List<EDTDescriptorChoiceType> objs = entityD.getChoiceType().get(0).getDescriptors(); if (objs != null) { for (EDTDescriptorChoiceType roleD : objs) { RoleDescriptorType roleDescriptor = roleD.getRoleDescriptor(); roleDescriptor.addKeyDescriptor(keyD); } } } }
private void updateKeyDescriptor(EntityDescriptorType entityD, KeyDescriptorType keyD) { List<EDTDescriptorChoiceType> objs = entityD.getChoiceType().get(0).getDescriptors(); if (objs != null) { for (EDTDescriptorChoiceType roleD : objs) { RoleDescriptorType roleDescriptor = roleD.getRoleDescriptor(); roleDescriptor.addKeyDescriptor(keyD); } } } }
private void updateKeyDescriptor(EntityDescriptorType entityD, KeyDescriptorType keyD) { List<EDTDescriptorChoiceType> objs = entityD.getChoiceType().get(0).getDescriptors(); if (objs != null) { for (EDTDescriptorChoiceType roleD : objs) { RoleDescriptorType roleDescriptor = roleD.getRoleDescriptor(); roleDescriptor.addKeyDescriptor(keyD); } } } }
private void updateKeyDescriptor(EntityDescriptorType entityD, KeyDescriptorType keyD) { List<EDTDescriptorChoiceType> objs = entityD.getChoiceType().get(0).getDescriptors(); if (objs != null) { for (EDTDescriptorChoiceType roleD : objs) { RoleDescriptorType roleDescriptor = roleD.getRoleDescriptor(); roleDescriptor.addKeyDescriptor(keyD); } } } }
private RoleDescriptorType parseRoleDescriptor(XMLEventReader xmlEventReader) throws ParsingException { StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, JBossSAMLConstants.ROLE_DESCRIPTOR.get()); List<String> protocolEnum = SAMLParserUtil.parseProtocolEnumeration(startElement); RoleDescriptorType roleDescriptorType = new RoleDescriptorType(protocolEnum) {}; while (xmlEventReader.hasNext()) { XMLEvent xmlEvent = StaxParserUtil.peek(xmlEventReader); if (xmlEvent instanceof EndElement) { EndElement end = StaxParserUtil.getNextEndElement(xmlEventReader); StaxParserUtil.validate(end, JBossSAMLConstants.ROLE_DESCRIPTOR.get()); break; } startElement = (StartElement) xmlEvent; String localPart = startElement.getName().getLocalPart(); if (JBossSAMLConstants.KEY_DESCRIPTOR.get().equalsIgnoreCase(localPart)) { KeyDescriptorType keyDescriptor = parseKeyDescriptor(xmlEventReader); roleDescriptorType.addKeyDescriptor(keyDescriptor); } else { StaxParserUtil.bypassElementBlock(xmlEventReader, localPart); } } return roleDescriptorType; } }
private RoleDescriptorType parseRoleDescriptor(XMLEventReader xmlEventReader) throws ParsingException { StartElement startElement = StaxParserUtil.getNextStartElement(xmlEventReader); StaxParserUtil.validate(startElement, JBossSAMLConstants.ROLE_DESCRIPTOR.get()); List<String> protocolEnum = SAMLParserUtil.parseProtocolEnumeration(startElement); RoleDescriptorType roleDescriptorType = new RoleDescriptorType(protocolEnum) {}; while (xmlEventReader.hasNext()) { XMLEvent xmlEvent = StaxParserUtil.peek(xmlEventReader); if (xmlEvent instanceof EndElement) { EndElement end = StaxParserUtil.getNextEndElement(xmlEventReader); StaxParserUtil.validate(end, JBossSAMLConstants.ROLE_DESCRIPTOR.get()); break; } startElement = (StartElement) xmlEvent; String localPart = startElement.getName().getLocalPart(); if (JBossSAMLConstants.KEY_DESCRIPTOR.get().equalsIgnoreCase(localPart)) { KeyDescriptorType keyDescriptor = parseKeyDescriptor(xmlEventReader); roleDescriptorType.addKeyDescriptor(keyDescriptor); } else { StaxParserUtil.bypassElementBlock(xmlEventReader, localPart); } } return roleDescriptorType; } }
private void updateKeyDescriptor(EntityDescriptorType entityD, KeyDescriptorType keyD) { List<EDTDescriptorChoiceType> objs = entityD.getChoiceType().get(0).getDescriptors(); if (objs != null) { for (EDTDescriptorChoiceType choiceTypeDesc : objs) { AttributeAuthorityDescriptorType attribDescriptor = choiceTypeDesc.getAttribDescriptor(); if (attribDescriptor != null) attribDescriptor.addKeyDescriptor(keyD); AuthnAuthorityDescriptorType authnDescriptor = choiceTypeDesc.getAuthnDescriptor(); if (authnDescriptor != null) authnDescriptor.addKeyDescriptor(keyD); IDPSSODescriptorType idpDescriptor = choiceTypeDesc.getIdpDescriptor(); if (idpDescriptor != null) idpDescriptor.addKeyDescriptor(keyD); PDPDescriptorType pdpDescriptor = choiceTypeDesc.getPdpDescriptor(); if (pdpDescriptor != null) pdpDescriptor.addKeyDescriptor(keyD); RoleDescriptorType roleDescriptor = choiceTypeDesc.getRoleDescriptor(); if (roleDescriptor != null) roleDescriptor.addKeyDescriptor(keyD); SPSSODescriptorType spDescriptorType = choiceTypeDesc.getSpDescriptor(); if (spDescriptorType != null) spDescriptorType.addKeyDescriptor(keyD); } } } }
private void updateKeyDescriptor(EntityDescriptorType entityD, KeyDescriptorType keyD) { List<EDTDescriptorChoiceType> objs = entityD.getChoiceType().get(0).getDescriptors(); if (objs != null) { for (EDTDescriptorChoiceType choiceTypeDesc : objs) { AttributeAuthorityDescriptorType attribDescriptor = choiceTypeDesc.getAttribDescriptor(); if (attribDescriptor != null) attribDescriptor.addKeyDescriptor(keyD); AuthnAuthorityDescriptorType authnDescriptor = choiceTypeDesc.getAuthnDescriptor(); if (authnDescriptor != null) authnDescriptor.addKeyDescriptor(keyD); IDPSSODescriptorType idpDescriptor = choiceTypeDesc.getIdpDescriptor(); if (idpDescriptor != null) idpDescriptor.addKeyDescriptor(keyD); PDPDescriptorType pdpDescriptor = choiceTypeDesc.getPdpDescriptor(); if (pdpDescriptor != null) pdpDescriptor.addKeyDescriptor(keyD); RoleDescriptorType roleDescriptor = choiceTypeDesc.getRoleDescriptor(); if (roleDescriptor != null) roleDescriptor.addKeyDescriptor(keyD); SPSSODescriptorType spDescriptorType = choiceTypeDesc.getSpDescriptor(); if (spDescriptorType != null) spDescriptorType.addKeyDescriptor(keyD); } } } }