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