Lines Matching defs:protocol

31  * The public API for secure socket protocol implementations. It acts as factory
42 * Creates a new {@code SSLContext} instance for the specified protocol.
44 * @param protocol
45 * the requested protocol to create a context for.
48 * if no installed provider can provide the requested protocol
50 * if {@code protocol} is {@code null} (instead of
53 public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException {
54 if (protocol == null) {
55 throw new NullPointerException("protocol is null");
58 engine.getInstance(protocol, null);
59 return new SSLContext((SSLContextSpi) engine.spi, engine.provider, protocol);
64 * Creates a new {@code SSLContext} instance for the specified protocol from
67 * @param protocol
68 * the requested protocol to create a context for.
70 * the name of the provider that provides the requested protocol.
71 * @return an {@code SSLContext} for the requested protocol.
74 * protocol.
78 * if {@code protocol} is {@code null} (instead of
81 public static SSLContext getInstance(String protocol, String provider)
93 return getInstance(protocol, impProvider);
97 * Creates a new {@code SSLContext} instance for the specified protocol from
100 * @param protocol
101 * the requested protocol to create a context for
103 * the provider that provides the requested protocol.
104 * @return an {@code SSLContext} for the requested protocol.
107 * protocol.
109 * if {@code protocol} is {@code null} (instead of
112 public static SSLContext getInstance(String protocol, Provider provider)
117 if (protocol == null) {
118 throw new NullPointerException("protocol is null");
121 engine.getInstance(protocol, provider, null);
122 return new SSLContext((SSLContextSpi) engine.spi, provider, protocol);
130 private final String protocol;
139 * @param protocol
140 * the protocol name.
142 protected SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) {
144 this.protocol = protocol;
149 * Returns the name of the secure socket protocol of this instance.
151 * @return the name of the secure socket protocol of this instance.
154 return protocol;