/** * Create a IDP SSO metadata descriptor * * @param requestsSigned * @param keyDescriptorType * @param ssoEndPoint * @param sloEndPoint * @param attributes * @param org * * @return */ public static IDPSSODescriptorType createIDPSSODescriptor(boolean requestsSigned, KeyDescriptorType keyDescriptorType, EndpointType ssoEndPoint, EndpointType sloEndPoint, List<AttributeType> attributes, OrganizationType org) { List<String> emptyList = new ArrayList<String>(); IDPSSODescriptorType idp = new IDPSSODescriptorType(emptyList); idp.addSingleSignOnService(ssoEndPoint); idp.addSingleLogoutService(sloEndPoint); for (AttributeType attr : attributes) { idp.addAttribute(attr); } idp.addKeyDescriptor(keyDescriptorType); idp.setWantAuthnRequestsSigned(requestsSigned); idp.setOrganization(org); return idp; }
/** * Create a IDP SSO metadata descriptor * * @param requestsSigned * @param keyDescriptorType * @param ssoEndPoint * @param sloEndPoint * @param attributes * @param org * @return */ public static IDPSSODescriptorType createIDPSSODescriptor(boolean requestsSigned, KeyDescriptorType keyDescriptorType, EndpointType ssoEndPoint, EndpointType sloEndPoint, List<AttributeType> attributes, OrganizationType org) { List<String> emptyList = new ArrayList<String>(); IDPSSODescriptorType idp = new IDPSSODescriptorType(emptyList); idp.addSingleSignOnService(ssoEndPoint); idp.addSingleLogoutService(sloEndPoint); for (AttributeType attr : attributes) { idp.addAttribute(attr); } idp.addKeyDescriptor(keyDescriptorType); idp.setWantAuthnRequestsSigned(requestsSigned); idp.setOrganization(org); return idp; }
/** * Create a IDP SSO metadata descriptor * * @param requestsSigned * @param keyDescriptorType * @param ssoEndPoint * @param sloEndPoint * @param attributes * @param org * * @return */ public static IDPSSODescriptorType createIDPSSODescriptor(boolean requestsSigned, KeyDescriptorType keyDescriptorType, EndpointType ssoEndPoint, EndpointType sloEndPoint, List<AttributeType> attributes, OrganizationType org) { List<String> emptyList = new ArrayList<String>(); IDPSSODescriptorType idp = new IDPSSODescriptorType(emptyList); idp.addSingleSignOnService(ssoEndPoint); idp.addSingleLogoutService(sloEndPoint); for (AttributeType attr : attributes) { idp.addAttribute(attr); } idp.addKeyDescriptor(keyDescriptorType); idp.setWantAuthnRequestsSigned(requestsSigned); idp.setOrganization(org); return idp; }
/** * Create a IDP SSO metadata descriptor * @param requestsSigned * @param keyDescriptorType * @param ssoEndPoint * @param sloEndPoint * @param attributes * @param org * @return */ public static IDPSSODescriptorType createIDPSSODescriptor(boolean requestsSigned, KeyDescriptorType keyDescriptorType, EndpointType ssoEndPoint, EndpointType sloEndPoint, List<AttributeType> attributes, OrganizationType org) { List<String> emptyList = new ArrayList<String>(); IDPSSODescriptorType idp = new IDPSSODescriptorType(emptyList); idp.addSingleSignOnService(ssoEndPoint); idp.addSingleLogoutService(sloEndPoint); for (AttributeType attr : attributes) { idp.addAttribute(attr); } idp.addKeyDescriptor(keyDescriptorType); idp.setWantAuthnRequestsSigned(requestsSigned); idp.setOrganization(org); return idp; }
/** * Create a IDP SSO metadata descriptor * @param requestsSigned * @param keyDescriptorType * @param ssoEndPoint * @param sloEndPoint * @param attributes * @param org * @return */ public static IDPSSODescriptorType createIDPSSODescriptor(boolean requestsSigned, KeyDescriptorType keyDescriptorType, EndpointType ssoEndPoint, EndpointType sloEndPoint, List<AttributeType> attributes, OrganizationType org) { List<String> emptyList = new ArrayList<String>(); IDPSSODescriptorType idp = new IDPSSODescriptorType(emptyList); idp.addSingleSignOnService(ssoEndPoint); idp.addSingleLogoutService(sloEndPoint); for (AttributeType attr : attributes) { idp.addAttribute(attr); } idp.addKeyDescriptor(keyDescriptorType); idp.setWantAuthnRequestsSigned(requestsSigned); idp.setOrganization(org); return idp; }
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); } } } }
idpSSODescriptor.addAttribute(attribute); } else if (JBossSAMLConstants.KEY_DESCRIPTOR.get().equalsIgnoreCase(localPart)) { idpSSODescriptor.addKeyDescriptor(parseKeyDescriptor(xmlEventReader)); } else if (JBossSAMLConstants.EXTENSIONS.get().equalsIgnoreCase(localPart)) { idpSSODescriptor.setExtensions(parseExtensions(xmlEventReader));
idpSSODescriptor.addAttribute(attribute); } else if (JBossSAMLConstants.KEY_DESCRIPTOR.get().equalsIgnoreCase(localPart)) { idpSSODescriptor.addKeyDescriptor(parseKeyDescriptor(xmlEventReader)); } else if (JBossSAMLConstants.EXTENSIONS.get().equalsIgnoreCase(localPart)) { idpSSODescriptor.setExtensions(parseExtensions(xmlEventReader));
idpSSODescriptor.addKeyDescriptor(keyDescriptor);
idpSSODescriptor.addKeyDescriptor(keyDescriptor);
idpSSODescriptor.addKeyDescriptor(keyDescriptor); } else if (JBossSAMLConstants.EXTENSIONS.get().equalsIgnoreCase(localPart)) { idpSSODescriptor.setExtensions(parseExtensions(xmlEventReader));