Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sap-service
Commits
07cad723
Commit
07cad723
authored
Aug 15, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
1dbc652e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
SAPServiceFactory.java
src/main/java/com/egolm/sso/clients/SAPServiceFactory.java
+10
-14
No files found.
src/main/java/com/egolm/sso/clients/SAPServiceFactory.java
View file @
07cad723
package
com
.
egolm
.
sso
.
clients
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.security.KeyStore
;
import
java.security.cert.CertificateException
;
import
java.security.cert.X509Certificate
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.net.ssl.HostnameVerifier
;
import
javax.net.ssl.KeyManager
;
import
javax.net.ssl.KeyManagerFactory
;
import
javax.net.ssl.SSLSession
;
import
javax.net.ssl.TrustManager
;
import
javax.net.ssl.TrustManagerFactory
;
import
javax.net.ssl.X509TrustManager
;
import
javax.security.auth.callback.Callback
;
import
javax.security.auth.callback.CallbackHandler
;
...
...
@@ -43,14 +37,14 @@ public class SAPServiceFactory {
@Value
(
"${CLIENT.SSL.OPEN}"
)
private
boolean
isOpenSSLAuth
;
@Value
(
"${CLIENT.SSL.PROTOCOL}"
)
private
String
SSLProtocol
;
@Value
(
"${CLIENT.SSL.KEYSTORE.FILEPATH}"
)
private
String
keyStoreFile
;
@Value
(
"${CLIENT.SSL.KEYSTORE.PASSWORD}"
)
private
String
keyStorePassword
;
//
@Value("${CLIENT.SSL.PROTOCOL}")
//
private String SSLProtocol;
//
//
@Value("${CLIENT.SSL.KEYSTORE.FILEPATH}")
//
private String keyStoreFile;
//
//
@Value("${CLIENT.SSL.KEYSTORE.PASSWORD}")
//
private String keyStorePassword;
@Value
(
"${CLIENT.USER.OPEN}"
)
private
boolean
isOpenUserAuth
;
...
...
@@ -125,6 +119,7 @@ public class SAPServiceFactory {
}
/*
private static TrustManager[] trustManagers = null;
private static KeyManager[] keyManagers = null;
...
...
@@ -180,4 +175,5 @@ public class SAPServiceFactory {
}
return keyManagers;
}
*/
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment