| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| pack-priv class | SSLStreams.
This is a thin wrapper over SSLEngine and the SocketChannel, which guarantees the ordering of wraps/unwraps with respect to the underlying channel read/writes. |
| pack-priv class | SSLStreams.
represents an SSL input stream. |
| pack-priv class | SSLStreams.
represents an SSL output stream. |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv SocketChannel | |
| pack-priv SSLEngine | |
| pack-priv Lock | |
| pack-priv SSLStreams. | |
| pack-priv SSLStreams. | |
| pack-priv int | |
| pack-priv ServerImpl | |
| pack-priv SSLContext | |
| pack-priv SSLStreams. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private ByteBuffer | |
| private ByteBuffer | |
| pack-priv void | beginHandshake()
request the engine to repeat the handshake on this session the handshake must be driven by reads/writes on the streams Normally, not necessary to call this. |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv SSLStreams. | |
| pack-priv SSLStreams. | |
| pack-priv SSLEngine | |
| private ByteBuffer | |
| public SSLStreams. | |
| public SSLStreams. |
| app_buf_size | back to summary |
|---|---|
| pack-priv int app_buf_size | |
| chan | back to summary |
|---|---|
| pack-priv SocketChannel chan | |
| engine | back to summary |
|---|---|
| pack-priv SSLEngine engine | |
| handshaking | back to summary |
|---|---|
| pack-priv Lock handshaking | |
| is | back to summary |
|---|---|
| pack-priv SSLStreams. | |
| os | back to summary |
|---|---|
| pack-priv SSLStreams. | |
| packet_buf_size | back to summary |
|---|---|
| pack-priv int packet_buf_size | |
| server | back to summary |
|---|---|
| pack-priv ServerImpl server | |
| sslctx | back to summary |
|---|---|
| pack-priv SSLContext sslctx | |
| wrapper | back to summary |
|---|---|
| pack-priv SSLStreams. | |
| SSLStreams | back to summary |
|---|---|
| pack-priv SSLStreams(ServerImpl server, SSLContext sslctx, SocketChannel chan) throws IOException | |
| allocate | back to summary |
|---|---|
| private ByteBuffer allocate(SSLStreams. | |
| allocate | back to summary |
|---|---|
| private ByteBuffer allocate(SSLStreams. | |
| beginHandshake | back to summary |
|---|---|
| pack-priv void beginHandshake() throws SSLException request the engine to repeat the handshake on this session the handshake must be driven by reads/writes on the streams Normally, not necessary to call this. | |
| close | back to summary |
|---|---|
| pack-priv void close() throws IOException cleanup resources allocated inside this object | |
| configureEngine | back to summary |
|---|---|
private void configureEngine(HttpsConfigurator cfg, InetSocketAddress addr)
| |
| doClosure | back to summary |
|---|---|
| pack-priv void doClosure() throws IOException | |
| doHandshake | back to summary |
|---|---|
pack-priv void doHandshake(SSLEngineResult.
| |
| getInputStream | back to summary |
|---|---|
| pack-priv SSLStreams. return the SSL InputStream | |
| getOutputStream | back to summary |
|---|---|
| pack-priv SSLStreams. return the SSL OutputStream | |
| getSSLEngine | back to summary |
|---|---|
| pack-priv SSLEngine getSSLEngine() | |
| realloc | back to summary |
|---|---|
| private ByteBuffer realloc(ByteBuffer b, boolean flip, SSLStreams. | |
| recvData | back to summary |
|---|---|
| public SSLStreams. read data thru the engine into the given ByteBuffer. If the given buffer was not large enough, a new one is allocated and returned. This call handles handshaking automatically. Caller should check if engine has been closed. | |
| sendData | back to summary |
|---|---|
| public SSLStreams. send the data in the given ByteBuffer. If a handshake is needed then this is handled within this method. When this call returns, all of the given user data has been sent and any handshake has been completed. Caller should check if engine has been closed. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SSLStreams. | |
| public static final SSLStreams. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SSLStreams. | |
| public static SSLStreams. |
| APPLICATION | back to summary |
|---|---|
| public static final SSLStreams. | |
| PACKET | back to summary |
|---|---|
| public static final SSLStreams. | |
| BufType | back to summary |
|---|---|
| private BufType() | |
| valueOf | back to summary |
|---|---|
| public static SSLStreams. | |
| values | back to summary |
|---|---|
| public static SSLStreams. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv SocketChannel | |
| pack-priv boolean | |
| pack-priv SSLEngine | |
| pack-priv int | |
| pack-priv ByteBuffer | |
| pack-priv Object | |
| pack-priv ByteBuffer | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv SSLStreams. | |
| pack-priv SSLStreams. | |
| pack-priv SSLStreams. |
| chan | back to summary |
|---|---|
| pack-priv SocketChannel chan | |
| closed | back to summary |
|---|---|
| pack-priv boolean closed | |
| engine | back to summary |
|---|---|
| pack-priv SSLEngine engine | |
| u_remaining | back to summary |
|---|---|
| pack-priv int u_remaining | |
| unwrap_src | back to summary |
|---|---|
| pack-priv ByteBuffer unwrap_src | |
| unwrapLock | back to summary |
|---|---|
| pack-priv Object unwrapLock | |
| wrap_dst | back to summary |
|---|---|
| pack-priv ByteBuffer wrap_dst | |
| wrapLock | back to summary |
|---|---|
| pack-priv Object wrapLock | |
| EngineWrapper | back to summary |
|---|---|
| pack-priv EngineWrapper(SocketChannel chan, SSLEngine engine) throws IOException | |
| close | back to summary |
|---|---|
| pack-priv void close() throws IOException | |
| recvAndUnwrap | back to summary |
|---|---|
| pack-priv SSLStreams. | |
| wrapAndSend | back to summary |
|---|---|
| pack-priv SSLStreams. | |
| wrapAndSendX | back to summary |
|---|---|
| pack-priv SSLStreams. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBuffer | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| public void | close()
Overrides java. Implements java. close the SSL connection. |
| public boolean | markSupported()
Overrides java. Tests if this input stream supports the |
| public int | read(byte[] buf, int off, int len)
Overrides java. Reads up to |
| public int | read(byte[] buf)
Overrides java. Reads some number of bytes from the input stream and stores them into
the buffer array |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public void | reset()
Overrides java. Repositions this stream to the position at the time the
|
| public long | skip(long s)
Overrides java. Skips over and discards |
| bbuf | back to summary |
|---|---|
| pack-priv ByteBuffer bbuf | |
| closed | back to summary |
|---|---|
| pack-priv boolean closed | |
| eof | back to summary |
|---|---|
| pack-priv boolean eof | |
| needData | back to summary |
|---|---|
| pack-priv boolean needData | |
| single | back to summary |
|---|---|
| pack-priv byte[] single | |
| InputStream | back to summary |
|---|---|
| pack-priv InputStream() | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. close the SSL connection. All data must have been consumed before this is called. Otherwise an exception will be thrown. [Note. May need to revisit this. not quite the normal close() semantics
| |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Doc from java. Tests if this input stream supports the | |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf) throws IOException Overrides java. Doc from java. Reads some number of bytes from the input stream and stores them into
the buffer array If the length of The first byte read is stored into element
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides java. Doc from java. Repositions this stream to the position at the time the
The general contract of
| |
| skip | back to summary |
|---|---|
| public long skip(long s) throws IOException Overrides java. Doc from java. Skips over and discards
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBuffer | |
| pack-priv boolean | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public void | write(int b)
Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[] b)
Overrides java. Writes |
| public void | write(byte[] b, int off, int len)
Overrides java. Writes |
| buf | back to summary |
|---|---|
| pack-priv ByteBuffer buf | |
| closed | back to summary |
|---|---|
| pack-priv boolean closed | |
| single | back to summary |
|---|---|
| pack-priv byte[] single | |
| OutputStream | back to summary |
|---|---|
| pack-priv OutputStream() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InetSocketAddress | |
| pack-priv HttpsConfigurator | |
| pack-priv SSLParameters |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public InetSocketAddress | getClientAddress()
Implements abstract com. Returns the address of the remote client initiating the connection. |
| public HttpsConfigurator | getHttpsConfigurator()
Implements abstract com. Returns the |
| pack-priv SSLParameters | |
| public void | setSSLParameters(SSLParameters p)
Implements abstract com. Sets the |
| addr | back to summary |
|---|---|
| pack-priv InetSocketAddress addr | |
| cfg | back to summary |
|---|---|
| pack-priv HttpsConfigurator cfg | |
| params | back to summary |
|---|---|
| pack-priv SSLParameters params | |
| Parameters | back to summary |
|---|---|
| pack-priv Parameters(HttpsConfigurator cfg, InetSocketAddress addr) | |
| getClientAddress | back to summary |
|---|---|
| public InetSocketAddress getClientAddress() Implements abstract com. Doc from com. Returns the address of the remote client initiating the connection. | |
| getHttpsConfigurator | back to summary |
|---|---|
| public HttpsConfigurator getHttpsConfigurator() Implements abstract com. Doc from com. Returns the | |
| getSSLParameters | back to summary |
|---|---|
| pack-priv SSLParameters getSSLParameters() | |
| setSSLParameters | back to summary |
|---|---|
| public void setSSLParameters(SSLParameters p) Implements abstract com. Doc from com. Sets the | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBuffer | |
| pack-priv SSLEngineResult |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| buf | back to summary |
|---|---|
| pack-priv ByteBuffer buf | |
| result | back to summary |
|---|---|
| pack-priv SSLEngineResult result | |
| WrapperResult | back to summary |
|---|---|
| pack-priv WrapperResult() | |