org.apache.qpid.proton.engine.impl.ssl
Class SimpleSslTransportWrapper

java.lang.Object
  extended by org.apache.qpid.proton.engine.impl.ssl.SimpleSslTransportWrapper
All Implemented Interfaces:
SslTransportWrapper, TransportInput, TransportOutput, TransportWrapper

public class SimpleSslTransportWrapper
extends Object
implements SslTransportWrapper

TODO close the SSLEngine when told to, and modify input(byte[], int, int) and output(byte[], int, int) to respond appropriately thereafter.


Method Summary
 String getCipherName()
           
 String getProtocolName()
           
 int input(byte[] encodedBytes, int offset, int size)
           
 int output(byte[] destination, int offset, int size)
          Write encoded output to the supplied destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

input

public int input(byte[] encodedBytes,
                 int offset,
                 int size)
Specified by:
input in interface TransportInput
Parameters:
encodedBytes - input bytes for consumption
offset - the offset within bytes where input begins
size - the number of bytes available for input
Returns:
the number of bytes consumed

output

public int output(byte[] destination,
                  int offset,
                  int size)
Write encoded output to the supplied destination. The following conditions hold before and after this method call: _encodedOutputHolder is readable. _clearOutputHolder is writeable.

Specified by:
output in interface TransportOutput
Parameters:
destination - input bytes for consumption
offset - the offset within bytes where input begins
size - the number of bytes available for input
Returns:
the number of bytes consumed

getCipherName

public String getCipherName()
Specified by:
getCipherName in interface SslTransportWrapper
Returns:
the cipher name, which is null until the SSL handshaking is completed

getProtocolName

public String getProtocolName()
Specified by:
getProtocolName in interface SslTransportWrapper
Returns:
the protocol name, which is null until the SSL handshaking is completed


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.