mirror of https://gitee.com/topiam/eiam
⚡ 优化代码
parent
c8792c999c
commit
ceb36d5cd8
|
@ -38,10 +38,5 @@
|
|||
<artifactId>eiam-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.elasticsearch</groupId>
|
||||
<artifactId>elasticsearch-x-content</artifactId>
|
||||
<version>${elasticsearch.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -60,13 +60,13 @@ import okhttp3.CertificatePinner;
|
|||
* Created by support@topiam.cn on 2022/5/18 23:38
|
||||
*/
|
||||
public class CertUtils {
|
||||
private static final Logger logger = LoggerFactory.getLogger(CertUtils.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(CertUtils.class);
|
||||
|
||||
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
|
||||
public static final String BEGIN_CERT = "-----BEGIN CERTIFICATE-----" + LINE_SEPARATOR;
|
||||
public static final String END_CERT = "-----END CERTIFICATE-----";
|
||||
public static final String BEGIN_KEY = "-----BEGIN RSA PRIVATE KEY-----" + LINE_SEPARATOR;
|
||||
public static final String END_KEY = "-----END RSA PRIVATE KEY-----";
|
||||
public static final String BEGIN_CERT = "-----BEGIN CERTIFICATE-----" + LINE_SEPARATOR;
|
||||
public static final String END_CERT = "-----END CERTIFICATE-----";
|
||||
public static final String BEGIN_KEY = "-----BEGIN RSA PRIVATE KEY-----" + LINE_SEPARATOR;
|
||||
public static final String END_KEY = "-----END RSA PRIVATE KEY-----";
|
||||
static {
|
||||
Security.addProvider(new BouncyCastleProvider());
|
||||
}
|
||||
|
|
5
pom.xml
5
pom.xml
|
@ -380,11 +380,6 @@
|
|||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.lucene</groupId>
|
||||
<artifactId>lucene-core</artifactId>
|
||||
<version>8.11.1</version>
|
||||
</dependency>
|
||||
<!--spring data jpa-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
|
Loading…
Reference in New Issue