3785cf8e6484976820fca260bde87f666414ca0e
[oom/platform/cert-service.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * PROJECT
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.onap.aaf.certservice.certification.configuration.model;
22
23 import javax.validation.constraints.NotNull;
24 import org.hibernate.validator.constraints.Length;
25
26 public class Authentication {
27
28     @NotNull
29     @Length(min = 1, max = 256)
30     private String iak;
31     @NotNull
32     @Length(min = 1, max = 256)
33     private String rv;
34
35     public String getIak() {
36         return iak;
37     }
38
39     public void setIak(String iak) {
40         this.iak = iak;
41     }
42
43     public String getRv() {
44         return rv;
45     }
46
47     public void setRv(String rv) {
48         this.rv = rv;
49     }
50
51     @Override
52     public String toString() {
53         return "Authentication{" +
54                 "  iak=*****" +
55                 ", rv=*****" +
56                 '}';
57     }
58 }