/**@class javax.net.ssl.SSLContext
@extends java.lang.Object

 Instances of this class represent a secure socket protocol
 implementation which acts as a factory for secure socket
 factories or <code>SSLEngine</code>s. This class is initialized
 with an optional set of key and trust managers and source of
 secure random bytes.

 <p> Android provides the following <code>SSLContext</code> protocols:
 <table>
   <thead>
     <tr>
       <th>Algorithm</th>
       <th>Supported API Levels</th>
     </tr>
   </thead>
   <tbody>
     <tr>
       <td>Default</td>
       <td>10+</td>
     </tr>
     <tr>
       <td>SSL</td>
       <td>10+</td>
     </tr>
     <tr class="deprecated">
       <td>SSLv3</td>
       <td>10-25</td>
     </tr>
     <tr>
       <td>TLS</td>
       <td>1+</td>
     </tr>
     <tr>
       <td>TLSv1</td>
       <td>10+</td>
     </tr>
     <tr>
       <td>TLSv1.1</td>
       <td>16+</td>
     </tr>
     <tr>
       <td>TLSv1.2</td>
       <td>16+</td>
     </tr>
     <tr>
       <td>TLSv1.3</td>
       <td>29+</td>
     </tr>
   </tbody>
 </table>

 This protocol is described in the <a href=
 "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SSLContext">
 SSLContext section</a> of the
 Java Cryptography Architecture Standard Algorithm Name Documentation.

 @since 1.4
*/
var SSLContext = {

/**Returns the default SSL context.

 <p>If a default context was set using the {@link #setDefault
 javax.net.ssl.SSLContext.setDefault()} method, it is returned. Otherwise, the first
 call of this method triggers the call
 <code>SSLContext.getInstance("Default")</code>.
 If successful, that object is made the default SSL context and returned.

 <p>The default context is immediately
 usable and does not require {@linkplain #init initialization}.
@return {Object {javax.net.ssl.SSLContext}} the default SSL context
@throws NoSuchAlgorithmException if the
   {@link SSLContext#getInstance SSLContext.getInstance()} call fails
@since 1.6
*/
getDefault : function(  ) {},

/**Sets the default SSL context. It will be returned by subsequent calls
 to {@link #getDefault}. The default context must be immediately usable
 and not require {@linkplain #init initialization}.
 <p>
 Developers are <em>strongly</em> discouraged from changing the default {@code SSLContext} as
 it is used as the Android default for secure communication by APIs like
 {@link javax.net.ssl.SSLSocketFactory#getDefault()}, {@link javax.net.ssl.SSLServerSocketFactory#getDefault()} and
 {@link javax.net.ssl.HttpsURLConnection}.
@param {Object {SSLContext}} context the SSLContext
@throws NullPointerException if context is null
@throws SecurityException if a security manager exists and its
          <code>checkPermission</code> method does not allow
          <code>SSLPermission("setDefaultSSLContext")</code>
@since 1.6
*/
setDefault : function(  ) {},

/**Returns a <code>SSLContext</code> object that implements the
 specified secure socket protocol.

 <p> This method traverses the list of registered security Providers,
 starting with the most preferred Provider.
 A new SSLContext object encapsulating the
 SSLContextSpi implementation from the first
 Provider that supports the specified protocol is returned.

 <p> Note that the list of registered providers may be retrieved via
 the {@link Security#getProviders() Security.getProviders()} method.
@param {String} protocol the standard name of the requested protocol.
          See the SSLContext section in the <a href=
 "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SSLContext">
          Java Cryptography Architecture Standard Algorithm Name
          Documentation</a>
          for information about standard protocol names.
@return {Object {javax.net.ssl.SSLContext}} the new <code>SSLContext</code> object.
@exception NoSuchAlgorithmException if no Provider supports a
          SSLContextSpi implementation for the
          specified protocol.
@exception NullPointerException if protocol is null.
@see java.security.Provider
*/
getInstance : function(  ) {},

/**Returns a <code>SSLContext</code> object that implements the
 specified secure socket protocol.

 <p> A new SSLContext object encapsulating the
 SSLContextSpi implementation from the specified provider
 is returned.  The specified provider must be registered
 in the security provider list.

 <p> Note that the list of registered providers may be retrieved via
 the {@link Security#getProviders() Security.getProviders()} method.
@param {String} protocol the standard name of the requested protocol.
          See the SSLContext section in the <a href=
 "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SSLContext">
          Java Cryptography Architecture Standard Algorithm Name
          Documentation</a>
          for information about standard protocol names.
@param {String} provider the name of the provider.
@return {Object {javax.net.ssl.SSLContext}} the new <code>SSLContext</code> object.
@throws NoSuchAlgorithmException if a SSLContextSpi
          implementation for the specified protocol is not
          available from the specified provider.
@throws NoSuchProviderException if the specified provider is not
          registered in the security provider list.
@throws IllegalArgumentException if the provider name is null or empty.
@throws NullPointerException if protocol is null.
@see java.security.Provider
*/
getInstance : function(  ) {},

/**Returns a <code>SSLContext</code> object that implements the
 specified secure socket protocol.

 <p> A new SSLContext object encapsulating the
 SSLContextSpi implementation from the specified Provider
 object is returned.  Note that the specified Provider object
 does not have to be registered in the provider list.
@param {String} protocol the standard name of the requested protocol.
          See the SSLContext section in the <a href=
 "https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SSLContext">
          Java Cryptography Architecture Standard Algorithm Name
          Documentation</a>
          for information about standard protocol names.
@param {Object {Provider}} provider an instance of the provider.
@return {Object {javax.net.ssl.SSLContext}} the new <code>SSLContext</code> object.
@throws NoSuchAlgorithmException if a SSLContextSpi
          implementation for the specified protocol is not available
          from the specified Provider object.
@throws IllegalArgumentException if the provider is null.
@throws NullPointerException if protocol is null.
@see java.security.Provider
*/
getInstance : function(  ) {},

/**Returns the protocol name of this <code>SSLContext</code> object.

 <p>This is the same name that was specified in one of the
 <code>getInstance</code> calls that created this
 <code>SSLContext</code> object.
@return {String} the protocol name of this <code>SSLContext</code> object.
*/
getProtocol : function(  ) {},

/**Returns the provider of this <code>SSLContext</code> object.
@return {Object {java.security.Provider}} the provider of this <code>SSLContext</code> object
*/
getProvider : function(  ) {},

/**Initializes this context. Either of the first two parameters
 may be null in which case the installed security providers will
 be searched for the highest priority implementation of the
 appropriate factory. Likewise, the secure random parameter may
 be null in which case the default implementation will be used.
 <P>
 Only the first instance of a particular key and/or trust manager
 implementation type in the array is used.  (For example, only
 the first javax.net.ssl.X509KeyManager in the array will be used.)
@param {Object {javax.net.ssl.KeyManager[]}} km the sources of authentication keys or null
@param {Object {javax.net.ssl.TrustManager[]}} tm the sources of peer authentication trust decisions or null
@param {Object {SecureRandom}} random the source of randomness for this generator or null
@throws KeyManagementException if this operation fails
*/
init : function(  ) {},

/**Returns a <code>SocketFactory</code> object for this
 context.
@return {Object {javax.net.ssl.SSLSocketFactory}} the <code>SocketFactory</code> object
@throws IllegalStateException if the SSLContextImpl requires
          initialization and the <code>init()</code> has not been called
*/
getSocketFactory : function(  ) {},

/**Returns a <code>ServerSocketFactory</code> object for
 this context.
@return {Object {javax.net.ssl.SSLServerSocketFactory}} the <code>ServerSocketFactory</code> object
@throws IllegalStateException if the SSLContextImpl requires
          initialization and the <code>init()</code> has not been called
*/
getServerSocketFactory : function(  ) {},

/**Creates a new <code>SSLEngine</code> using this context.
 <P>
 Applications using this factory method are providing no hints
 for an internal session reuse strategy. If hints are desired,
 {@link #createSSLEngine(String, int)} should be used
 instead.
 <P>
 Some cipher suites (such as Kerberos) require remote hostname
 information, in which case this factory method should not be used.
@return {Object {javax.net.ssl.SSLEngine}} the <code>SSLEngine</code> object
@throws UnsupportedOperationException if the underlying provider
          does not implement the operation.
@throws IllegalStateException if the SSLContextImpl requires
          initialization and the <code>init()</code> has not been called
@since 1.5
*/
createSSLEngine : function(  ) {},

/**Creates a new <code>SSLEngine</code> using this context using
 advisory peer information.
 <P>
 Applications using this factory method are providing hints
 for an internal session reuse strategy.
 <P>
 Some cipher suites (such as Kerberos) require remote hostname
 information, in which case peerHost needs to be specified.
@param {String} peerHost the non-authoritative name of the host
@param {Number} peerPort the non-authoritative port
@return {Object {javax.net.ssl.SSLEngine}} the new <code>SSLEngine</code> object
@throws UnsupportedOperationException if the underlying provider
          does not implement the operation.
@throws IllegalStateException if the SSLContextImpl requires
          initialization and the <code>init()</code> has not been called
@since 1.5
*/
createSSLEngine : function(  ) {},

/**Returns the server session context, which represents the set of
 SSL sessions available for use during the handshake phase of
 server-side SSL sockets.
 <P>
 This context may be unavailable in some environments, in which
 case this method returns null. For example, when the underlying
 SSL provider does not provide an implementation of SSLSessionContext
 interface, this method returns null. A non-null session context
 is returned otherwise.
@return {Object {javax.net.ssl.SSLSessionContext}} server session context bound to this SSL context
*/
getServerSessionContext : function(  ) {},

/**Returns the client session context, which represents the set of
 SSL sessions available for use during the handshake phase of
 client-side SSL sockets.
 <P>
 This context may be unavailable in some environments, in which
 case this method returns null. For example, when the underlying
 SSL provider does not provide an implementation of SSLSessionContext
 interface, this method returns null. A non-null session context
 is returned otherwise.
@return {Object {javax.net.ssl.SSLSessionContext}} client session context bound to this SSL context
*/
getClientSessionContext : function(  ) {},

/**Returns a copy of the SSLParameters indicating the default
 settings for this SSL context.

 <p>The parameters will always have the ciphersuites and protocols
 arrays set to non-null values.
@return {Object {javax.net.ssl.SSLParameters}} a copy of the SSLParameters object with the default settings
@throws UnsupportedOperationException if the default SSL parameters
   could not be obtained.
@since 1.6
*/
getDefaultSSLParameters : function(  ) {},

/**Returns a copy of the SSLParameters indicating the supported
 settings for this SSL context.

 <p>The parameters will always have the ciphersuites and protocols
 arrays set to non-null values.
@return {Object {javax.net.ssl.SSLParameters}} a copy of the SSLParameters object with the supported
   settings
@throws UnsupportedOperationException if the supported SSL parameters
   could not be obtained.
@since 1.6
*/
getSupportedSSLParameters : function(  ) {},


};