2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2020 Nokia. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.aaf.certservice.certification.configuration.model;
23 import javax.validation.Valid;
24 import javax.validation.constraints.NotNull;
25 import org.bouncycastle.asn1.x500.X500Name;
26 import org.hibernate.validator.constraints.Length;
27 import org.onap.aaf.certservice.certification.configuration.validation.constraints.Cmpv2URL;
29 public class Cmpv2Server {
33 private Authentication authentication;
35 private CaMode caMode;
37 @Length(min = 1, max = 128)
38 private String caName;
40 private X500Name issuerDN;
44 public Authentication getAuthentication() {
45 return authentication;
48 public void setAuthentication(Authentication authentication) {
49 this.authentication = authentication;
52 public CaMode getCaMode() {
56 public void setCaMode(CaMode caMode) {
60 public String getCaName() {
64 public void setCaName(String caName) {
68 public X500Name getIssuerDN() {
72 public void setIssuerDN(X500Name issuerDN) {
73 this.issuerDN = issuerDN;
76 public String getUrl() {
80 public void setUrl(String url) {
85 public String toString() {
86 return "Cmpv2Server{" +
87 "authentication=" + authentication +
88 ", caMode=" + caMode +
89 ", caName='" + caName + '\'' +
90 ", issuerDN='" + issuerDN + '\'' +
91 ", url='" + url + '\'' +