diff options
author | 2020-02-26 14:46:14 +0100 | |
---|---|---|
committer | 2020-02-27 07:07:45 +0100 | |
commit | 628ed81f0e56f7163b08b57a8d54833b646239d5 (patch) | |
tree | e0bcc7778e42cdedee6960cd2cc8e890dec4b227 /certService/src/main/java/org/onap/aaf/certservice/certification/configuration | |
parent | 9bc693f778fd64a9b716061fce3500398e95ef5a (diff) |
Refactor CSR model to be POJO
Issue-ID: AAF-997
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: Ia06dd580a64e56dcf1d8bf5f3db6fe6394cdb1c8
Diffstat (limited to 'certService/src/main/java/org/onap/aaf/certservice/certification/configuration')
-rw-r--r-- | certService/src/main/java/org/onap/aaf/certservice/certification/configuration/model/Cmpv2Server.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/certService/src/main/java/org/onap/aaf/certservice/certification/configuration/model/Cmpv2Server.java b/certService/src/main/java/org/onap/aaf/certservice/certification/configuration/model/Cmpv2Server.java index 9a9f9c5d..9f8f9796 100644 --- a/certService/src/main/java/org/onap/aaf/certservice/certification/configuration/model/Cmpv2Server.java +++ b/certService/src/main/java/org/onap/aaf/certservice/certification/configuration/model/Cmpv2Server.java @@ -20,6 +20,7 @@ package org.onap.aaf.certservice.certification.configuration.model; +import org.bouncycastle.asn1.x500.X500Name; import org.hibernate.validator.constraints.Length; import org.onap.aaf.certservice.certification.configuration.validation.constraints.Cmpv2URL; @@ -32,8 +33,7 @@ public class Cmpv2Server { private CaMode caMode; @Length(min = 1, max = 128) private String caName; - @Length(min = 4, max = 256) - private String issuerDN; + private X500Name issuerDN; @Cmpv2URL private String url; @@ -61,11 +61,11 @@ public class Cmpv2Server { this.caName = caName; } - public String getIssuerDN() { + public X500Name getIssuerDN() { return issuerDN; } - public void setIssuerDN(String issuerDN) { + public void setIssuerDN(X500Name issuerDN) { this.issuerDN = issuerDN; } |