final class SSLEngineImpl extends SSLEngine implements SSLTransport
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
SSLEngineImpl.DelegatedTask
Implement a simple task delegator.
|
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) TransportContext |
conContext |
private SSLContextImpl |
sslContext |
| 构造器和说明 |
|---|
SSLEngineImpl(SSLContextImpl sslContext)
Constructor for an SSLEngine from SSLContext, without
host/port hints.
|
SSLEngineImpl(SSLContextImpl sslContext,
String host,
int port)
Constructor for an SSLEngine from SSLContext.
|
getPeerHost, getPeerPort, unwrap, unwrap, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, getPeerHost, getPeerPort, shutdownprivate final SSLContextImpl sslContext
final TransportContext conContext
SSLEngineImpl(SSLContextImpl sslContext)
SSLEngineImpl(SSLContextImpl sslContext, String host, int port)
public void beginHandshake()
throws SSLException
beginHandshake 在类中 SSLEngineSSLExceptionpublic SSLEngineResult wrap(ByteBuffer[] appData, int offset, int length, ByteBuffer netData) throws SSLException
wrap 在类中 SSLEngineSSLExceptionpublic SSLEngineResult wrap(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws SSLException
SSLExceptionprivate SSLEngineResult writeRecord(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws IOException
IOExceptionprivate Ciphertext encode(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws IOException
IOExceptionprivate SSLEngineResult.HandshakeStatus tryToFinishHandshake(byte contentType)
private SSLEngineResult.HandshakeStatus tryKeyUpdate(SSLEngineResult.HandshakeStatus currentHandshakeStatus) throws IOException
IOExceptionprivate static void checkParams(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength)
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException
unwrap 在类中 SSLEngineSSLExceptionpublic SSLEngineResult unwrap(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws SSLException
SSLExceptionprivate SSLEngineResult readRecord(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws IOException
IOExceptionprivate Plaintext decode(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) throws IOException
IOExceptionpublic Runnable getDelegatedTask()
getDelegatedTask 在类中 SSLEnginepublic void closeInbound()
throws SSLException
closeInbound 在类中 SSLEngineSSLExceptionpublic boolean isInboundDone()
isInboundDone 在类中 SSLEnginepublic void closeOutbound()
closeOutbound 在类中 SSLEnginepublic boolean isOutboundDone()
isOutboundDone 在类中 SSLEnginepublic String[] getSupportedCipherSuites()
getSupportedCipherSuites 在类中 SSLEnginepublic String[] getEnabledCipherSuites()
getEnabledCipherSuites 在类中 SSLEnginepublic void setEnabledCipherSuites(String[] suites)
setEnabledCipherSuites 在类中 SSLEnginepublic String[] getSupportedProtocols()
getSupportedProtocols 在类中 SSLEnginepublic String[] getEnabledProtocols()
getEnabledProtocols 在类中 SSLEnginepublic void setEnabledProtocols(String[] protocols)
setEnabledProtocols 在类中 SSLEnginepublic SSLSession getSession()
getSession 在类中 SSLEnginepublic SSLSession getHandshakeSession()
getHandshakeSession 在类中 SSLEnginepublic SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus 在类中 SSLEnginepublic void setUseClientMode(boolean mode)
setUseClientMode 在类中 SSLEnginepublic boolean getUseClientMode()
getUseClientMode 在类中 SSLEnginepublic void setNeedClientAuth(boolean need)
setNeedClientAuth 在类中 SSLEnginepublic boolean getNeedClientAuth()
getNeedClientAuth 在类中 SSLEnginepublic void setWantClientAuth(boolean want)
setWantClientAuth 在类中 SSLEnginepublic boolean getWantClientAuth()
getWantClientAuth 在类中 SSLEnginepublic void setEnableSessionCreation(boolean flag)
setEnableSessionCreation 在类中 SSLEnginepublic boolean getEnableSessionCreation()
getEnableSessionCreation 在类中 SSLEnginepublic SSLParameters getSSLParameters()
getSSLParameters 在类中 SSLEnginepublic void setSSLParameters(SSLParameters params)
setSSLParameters 在类中 SSLEnginepublic String getApplicationProtocol()
getApplicationProtocol 在类中 SSLEnginepublic String getHandshakeApplicationProtocol()
public void setHandshakeApplicationProtocolSelector(java.util.function.BiFunction<SSLEngine,List<String>,String> selector)
public java.util.function.BiFunction<SSLEngine,List<String>,String> getHandshakeApplicationProtocolSelector()
public boolean useDelegatedTask()
SSLTransportuseDelegatedTask 在接口中 SSLTransportprivate void checkTaskThrown()
throws SSLException
SSLExceptionprivate static SSLException getTaskThrown(Exception taskThrown)
Copyright © 2023. All rights reserved.