懒羊羊
2024-01-31 e57a8990ae56f657a59c435a0613c5f7a8728003
提交 | 用户 | 时间
e57a89 1 /**
2  * Created by Jellyleo on 2019年12月19日
3  * Copyright © 2019 jellyleo.com 
4  * All rights reserved. 
5  */
6 package com.jcdm.main.da.opcuaconfig.init;
7
8 import lombok.Getter;
9 import org.springframework.beans.factory.annotation.Value;
10 import org.springframework.context.annotation.Configuration;
11 import org.springframework.context.annotation.PropertySource;
12
13 /**
14  * @ClassName: Properties
15  * @Description: OpcUa参数
16  * @author yyt
17  * @date 2023年10月13日
18  */
19 @Getter
20 @Configuration
21 @PropertySource("classpath:opcua.properties")
22 public class Properties {
23     @Value("${opcua.server.endpoint.url}")
24     private String endpointUrl;
25     @Value("${opcua.server.idp.username}")
26     private String idpUsername;
27     @Value("${opcua.server.idp.password}")
28     private String idpPassword;
29     @Value("${opcua.client.app.name}")
30     private String appName;
31     @Value("${opcua.client.app.uri}")
32     private String appUri;
33     @Value("${opcua.client.cert.path}")
34     private String certPath;
35     @Value("${opcua.client.cert.file}")
36     private String certFile;
37     @Value("${opcua.client.cert.alias}")
38     private String certAlias;
39     @Value("${opcua.client.cert.common.name}")
40     private String commonName;
41     @Value("${opcua.client.cert.organization}")
42     private String organization;
43     @Value("${opcua.client.cert.organization.unit}")
44     private String orgUnit;
45     @Value("${opcua.client.cert.locality.name}")
46     private String localityName;
47     @Value("${opcua.client.cert.state.name}")
48     private String stateName;
49     @Value("${opcua.client.cert.country.code}")
50     private String countryCode;
51     @Value("${opcua.client.cert.dns.name}")
52     private String dnsName;
53     @Value("${opcua.client.cert.ip.address}")
54     private String ipAddress;
55     @Value("${opcua.client.cert.keystore.password}")
56     private String keyPassword;
57 }