Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
Openfire
Commits
fe97ecbe
Commit
fe97ecbe
authored
Oct 22, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-946: Removed wildly inaccurate documentation.
parent
7018ba41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
29 deletions
+4
-29
SSLConfig.java
src/java/org/jivesoftware/openfire/net/SSLConfig.java
+4
-29
No files found.
src/java/org/jivesoftware/openfire/net/SSLConfig.java
View file @
fe97ecbe
...
...
@@ -36,30 +36,7 @@ import java.util.concurrent.ConcurrentHashMap;
import
java.util.concurrent.ConcurrentMap
;
/**
* Configuration of Openfire's SSL settings.
*
* Openfire distinguishes up to three distinct sets of certificate stores.
*
* <ul>
* <li>"Socket" - TCP-based XMPP communication (examples: desktop XMPP clients, server-to-server federation);</li>
* <li>"BOSH" - HTTP-based XMPP communication (examples: most mobile clients, web-based clients);</li>
* <li>"Administrative" - non-XMPP based communication (example: the web-based admin panel)</li>
* </ul>
*
* By default, the same set of stores is reused for all three purposes.
*
* A set consists of three stores: one key store and two trust stores.
*
* <em>key store</em>
* Contains certificates that identify this instance of Openfire. On request, these certificates are transmitted to
* other parties which use these certificates to identify your server,
*
* <em>server-to-server trust store</em>
* Contains certificates that identify remote servers that you choose to trust (applies to server-to-server federation).
*
* <em>client-to-server trust store</em>
* Contains certificates that identify clients that you choose to trust (applies to mutual authentication). By default,
* the client-to-server trust store that ships with Openfire is empty.
* Utility functions for TLS / SSL.
*
* @author Iain Shigeoka
* @author Guus der Kinderen, guus.der.kinderen@gmail.com
...
...
@@ -68,6 +45,9 @@ public class SSLConfig
{
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
SSLConfig
.
class
);
private
final
ConcurrentMap
<
Purpose
,
String
>
locationByPurpose
=
new
ConcurrentHashMap
<>();
private
final
ConcurrentMap
<
String
,
CertificateStoreConfig
>
storesByLocation
=
new
ConcurrentHashMap
<>();
private
static
SSLConfig
INSTANCE
;
public
static
synchronized
SSLConfig
getInstance
()
...
...
@@ -124,9 +104,6 @@ public class SSLConfig
return
results
;
}
private
final
ConcurrentMap
<
Purpose
,
String
>
locationByPurpose
=
new
ConcurrentHashMap
<>();
private
final
ConcurrentMap
<
String
,
CertificateStoreConfig
>
storesByLocation
=
new
ConcurrentHashMap
<>();
public
static
String
getNonCanonicalizedLocation
(
Purpose
purpose
)
{
final
String
path
;
...
...
@@ -285,7 +262,6 @@ public class SSLConfig
return
storesByLocation
.
get
(
locationByPurpose
.
get
(
purpose
)
);
}
public
void
useStoreForPurpose
(
Purpose
purpose
,
String
location
,
String
password
,
String
storeType
,
boolean
createIfAbsent
)
throws
IOException
,
CertificateStoreConfigException
{
final
String
newPath
=
canonicalize
(
location
);
...
...
@@ -392,5 +368,4 @@ public class SSLConfig
return
file
.
getCanonicalPath
();
}
}
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