SSLContext.createSSLEngine

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 peerHost the non-authoritative name of the host @param peerPort the non-authoritative port @return 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

  1. SSLEngine createSSLEngine(bool clientMode)
  2. SSLEngine createSSLEngine(bool clientMode, string peerHost, int peerPort)
    class SSLContext
    final
    createSSLEngine
    (,
    string peerHost
    ,)

Meta