Commit ba8d7621 authored by guus's avatar guus

Spelling in comments.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12234 b35dd754-fafc-0310-a699-88a17e54d16e
parent 374d97bf
...@@ -98,7 +98,7 @@ public class SSLConfig { ...@@ -98,7 +98,7 @@ public class SSLConfig {
"resources" + File.separator + "security" + File.separator + "truststore"); "resources" + File.separator + "security" + File.separator + "truststore");
s2sTrustStoreLocation = JiveGlobals.getHomeDirectory() + File.separator + s2sTrustStoreLocation; s2sTrustStoreLocation = JiveGlobals.getHomeDirectory() + File.separator + s2sTrustStoreLocation;
// Get the truststore passwprd; default is "changeit". // Get the truststore password; default is "changeit".
s2sTrustpass = JiveGlobals.getProperty("xmpp.socket.ssl.trustpass", "changeit"); s2sTrustpass = JiveGlobals.getProperty("xmpp.socket.ssl.trustpass", "changeit");
s2sTrustpass = s2sTrustpass.trim(); s2sTrustpass = s2sTrustpass.trim();
...@@ -115,7 +115,7 @@ public class SSLConfig { ...@@ -115,7 +115,7 @@ public class SSLConfig {
keyStore = null; keyStore = null;
s2sFactory = null; s2sFactory = null;
} }
// Load s2s trusstore // Load s2s truststore
try { try {
s2sTrustStore = KeyStore.getInstance(storeType); s2sTrustStore = KeyStore.getInstance(storeType);
s2sTrustStore.load(new FileInputStream(s2sTrustStoreLocation), s2sTrustpass.toCharArray()); s2sTrustStore.load(new FileInputStream(s2sTrustStoreLocation), s2sTrustpass.toCharArray());
...@@ -128,7 +128,7 @@ public class SSLConfig { ...@@ -128,7 +128,7 @@ public class SSLConfig {
s2sTrustStore = null; s2sTrustStore = null;
s2sFactory = null; s2sFactory = null;
} }
// Load c2s trusstore // Load c2s truststore
try { try {
if (s2sTrustStoreLocation.equals(c2sTrustStoreLocation)) { if (s2sTrustStoreLocation.equals(c2sTrustStoreLocation)) {
c2sTrustStore = s2sTrustStore; c2sTrustStore = s2sTrustStore;
...@@ -155,9 +155,9 @@ public class SSLConfig { ...@@ -155,9 +155,9 @@ public class SSLConfig {
} }
resetFactory(); resetFactory();
// Reset ssl factoty when certificates are modified // Reset SSL factory when certificates are modified
CertificateManager.addListener(new CertificateEventListener() { CertificateManager.addListener(new CertificateEventListener() {
// Reset ssl factory since keystores have changed // Reset SSL factory since keystores have changed
public void certificateCreated(KeyStore keyStore, String alias, X509Certificate cert) { public void certificateCreated(KeyStore keyStore, String alias, X509Certificate cert) {
resetFactory(); resetFactory();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment