* @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;
}