Home | History | Annotate | Download | only in ssl

Lines Matching refs:sslContext

33 public class SSLContext {
35 private static final String SERVICE = "SSLContext";
41 * Default SSLContext that can be replaced with SSLContext.setDefault()
43 private static SSLContext DEFAULT;
46 * Returns the default SSLContext.
50 * SSLContext.getInstance("Default")}, which will already be
57 public static SSLContext getDefault() throws NoSuchAlgorithmException {
60 DEFAULT = SSLContext.getInstance("Default");
67 * Sets the default SSLContext instance as returned by {@link
73 public static void setDefault(SSLContext sslContext) {
74 if (sslContext == null) {
75 throw new NullPointerException("sslContext == null");
78 DEFAULT = sslContext;
83 * Creates a new {@code SSLContext} instance for the specified protocol.
87 * @return the created {@code SSLContext} instance.
94 public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException {
99 return new SSLContext((SSLContextSpi) sap.spi, sap.provider, protocol);
103 * Creates a new {@code SSLContext} instance for the specified protocol from
110 * @return an {@code SSLContext} for the requested protocol.
120 public static SSLContext getInstance(String protocol, String provider)
136 * Creates a new {@code SSLContext} instance for the specified protocol from
143 * @return an {@code SSLContext} for the requested protocol.
151 public static SSLContext getInstance(String protocol, Provider provider)
160 return new SSLContext((SSLContextSpi) spi, provider, protocol);
170 * Creates a new {@code SSLContext}.
179 protected SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) {
195 * Returns the provider of this {@code SSLContext} instance.
197 * @return the provider of this {@code SSLContext} instance.
204 * Initializes this {@code SSLContext} instance. All of the arguments are
293 * created by this SSLContext.