Allow file-based SP to have a certificate.
The newly introduced tag ("Certiticate") would contain
the PEM encoded certificate content. This PR reads the value
of the element and populates it as the application certificate,
if available.
@@ -85,6 +85,8 @@ public class ServiceProvider implements Serializable {
}
} else if ("Description".equals(elementName)) {
serviceProvider.setDescription(element.getText());
+ } else if( "Certificate".equals(elementName)){
+ serviceProvider.setCertificateContent(element.getText());
} else if ("IsSaaSApp".equals(elementName)) {
if (element.getText() != null && "true".equals(element.getText())) {
serviceProvider.setSaasApp(true);
