Fea: Add field for SSL certificate to VIM
In the new field users can submit the public certificate of their Open Stack instance if it uses HTTPS. In this way Open Baton can work with Open Stack instances that use self signed certificates.
@@ -3,11 +3,7 @@ package org.openbaton.catalogue.nfvo.viminstances;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
-import javax.persistence.CascadeType;
-import javax.persistence.ElementCollection;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.OneToMany;
+import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.openbaton.catalogue.keys.PopKeypair;
@@ -45,6 +41,9 @@ public class OpenstackVimInstance extends BaseVimInstance {
@ElementCollection(fetch = FetchType.EAGER)
private Set<String> securityGroups;
+ @Column(length = 3700)
+ private String trustedCertificate;
+
@OneToMany(
fetch = FetchType.EAGER,
cascade = {CascadeType.ALL}
@@ -207,4 +206,12 @@ public class OpenstackVimInstance extends BaseVimInstance {
public void setKeys(Set<PopKeypair> keys) {
this.keys = keys;
}
+
+ public String getTrustedCertificate() {
+ return trustedCertificate;
+ }
+
+ public void setTrustedCertificate(String trustedCertificate) {
+ this.trustedCertificate = trustedCertificate;
+ }
}
