fix import
This commit is contained in:
@@ -4,7 +4,6 @@ import com.pledge.torgi.controller.storage.FileService;
|
|||||||
import com.pledge.torgi.model.Emails;
|
import com.pledge.torgi.model.Emails;
|
||||||
import com.pledge.torgi.repositories.EmailsRepository;
|
import com.pledge.torgi.repositories.EmailsRepository;
|
||||||
import com.pledge.torgi.utils.StartParams;
|
import com.pledge.torgi.utils.StartParams;
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@@ -26,14 +25,16 @@ public class EmailService {
|
|||||||
this.emailsRepository = emailsRepository;
|
this.emailsRepository = emailsRepository;
|
||||||
this.fileService = fileService;
|
this.fileService = fileService;
|
||||||
|
|
||||||
TrustManager[] trustAllCerts = new TrustManager[] {
|
TrustManager[] trustAllCerts = new TrustManager[]{
|
||||||
new X509TrustManager() {
|
new X509TrustManager() {
|
||||||
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
|
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void checkClientTrusted(X509Certificate[] certs, String authType) {
|
public void checkClientTrusted(X509Certificate[] certs, String authType) {
|
||||||
// Ничего не проверяем
|
// Ничего не проверяем
|
||||||
}
|
}
|
||||||
|
|
||||||
public void checkServerTrusted(X509Certificate[] certs, String authType) {
|
public void checkServerTrusted(X509Certificate[] certs, String authType) {
|
||||||
// Ничего не проверяем
|
// Ничего не проверяем
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user