org.apache.qpid.proton.engine.impl.ssl
Class SimpleSslTransportWrapper
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
public int input(byte[] encodedBytes,
int offset,
int size)
- Specified by:
input in interface TransportInput
- Parameters:
encodedBytes - input bytes for consumptionoffset - the offset within bytes where input beginssize - 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 consumptionoffset - the offset within bytes where input beginssize - 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.