| | |
| | | private final class ByteChannelImpl implements ByteChannel |
| | | { |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void close() throws IOException |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isOpen() |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public int read(final ByteBuffer unwrappedData) throws IOException |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public int write(final ByteBuffer unwrappedData) throws IOException |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | // It seems that the SSL engine does not remember if an error has already |
| | | // occurred so we must cache it here and rethrow. See OPENDJ-652. |
| | | /** |
| | | * It seems that the SSL engine does not remember if an error has already |
| | | * occurred so we must cache it here and rethrow. See OPENDJ-652. |
| | | */ |
| | | private void abortOnSSLException() throws IOException |
| | | { |
| | | if (sslException != null) |
| | |
| | | |
| | | |
| | | |
| | | // Attempt to read and unwrap the next SSL packet. |
| | | /** Attempt to read and unwrap the next SSL packet. */ |
| | | private int doRecvAndUnwrap() throws IOException |
| | | { |
| | | // Synchronize SSL unwrap with channel reads. |
| | |
| | | |
| | | |
| | | |
| | | // Attempt to wrap and send the next SSL packet. |
| | | /** Attempt to wrap and send the next SSL packet. */ |
| | | private int doWrapAndSend(final ByteBuffer unwrappedData) |
| | | throws IOException |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ByteChannel getChannel() |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public Certificate[] getClientCertificateChain() |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public String getName() |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public int getSSF() |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isSecure() |
| | | { |