public class SampleSSLUtil extends Object
SSLUtilityFactory is
used to create and initialize SSLContext. The SSL Context returned is
initialized with the platform's key store and trust store.
import javax.net.ssl.SSLContext;
import com.avaya.collaboration.ssl.util.SSLUtilityException;
import com.avaya.collaboration.ssl.util.SSLUtilityFactory;
public class SampleSSLUtil
{
public void usingSSLUtilAPI() throws SSLUtilityException
{
// Creates and initializes an SSL context with the
// platform's key store and trust store.
// The SSL Protocol used is TLSv1.0
final SSLContext sslContext = SSLUtilityFactory.createSSLContext();
}
}
Copyright © 2023 Avaya. All rights reserved.