public synchronized SSLContext getSSLContext() throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException
    {
        final SSLContext sslContext = getUninitializedSSLContext();
        sslContext.init( getKeyManagers(), getTrustManagers(), new SecureRandom() );
        return sslContext;
    }
Generates a new, initialized SSLContext instance that is suitable for connections that are created based on a
particular configuration.

@return TrustManagers applicable to a connection that is established using the provided configuration.
@throws NoSuchAlgorithmException if the algorithm is not supported
@throws KeyManagementException if there was problem manging the ket
@throws KeyStoreException if there was a problem accessing the keystore
@throws UnrecoverableKeyException if the key could not be recovered
xmppserver/src/main/java/org/jivesoftware/openfire/spi/EncryptionArtifactFactory.java