com.mindbright.ssh2
Class SSH2TransportPDU
java.lang.Object
|
+--com.mindbright.ssh2.SSH2DataBuffer
|
+--com.mindbright.ssh2.SSH2TransportPDU
- Direct Known Subclasses:
- SSH2TransportPDUPool, SSH2TransportPDUPool.InPDU, SSH2TransportPDUPool.OutPDU
- public class SSH2TransportPDU
- extends SSH2DataBuffer
|
Method Summary |
protected void |
checkMac(com.mindbright.jce.crypto.Mac mac,
int macSize)
|
static SSH2TransportPDU |
createIncomingPacket()
|
static SSH2TransportPDU |
createIncomingPacket(int bufSize)
|
protected SSH2TransportPDU |
createInPDU(int bufSize)
|
static SSH2TransportPDU |
createOutgoingPacket(int pktType)
|
static SSH2TransportPDU |
createOutgoingPacket(int pktType,
int bufSize)
|
protected SSH2TransportPDU |
createOutPDU(int pktType,
int bufSize)
|
static SSH2Transport.TranceiverContext |
createTranceiverContext(java.lang.String cipherName,
java.lang.String macName,
java.lang.String compName)
|
SSH2Transport.TranceiverContext |
createTranceiverContextImpl(java.lang.String cipherName,
java.lang.String macName,
java.lang.String compName)
|
int |
getPayloadLength()
|
int |
getPayloadOffset()
|
int |
getType()
|
SSH2TransportPDU |
makeCopy()
|
protected void |
readFrom(java.io.InputStream in,
int seqNum,
SSH2Transport.TranceiverContext context)
|
protected void |
readNextNFrom(java.io.InputStream in,
int n)
|
void |
release()
|
static void |
setFactoryInstance(SSH2TransportPDU factory)
|
void |
setType(int pktType)
|
java.lang.String |
toString()
|
protected void |
writeTo(java.io.OutputStream out,
int seqNum,
SSH2Transport.TranceiverContext context,
SecureRandomAndPad rand)
|
| Methods inherited from class com.mindbright.ssh2.SSH2DataBuffer |
getData, getMaxReadSize, getMaxWriteSize, getRPos, getWPos, readBigInt, readBigIntBits, readBoolean, readByte, readInt, readJavaString, readRaw, readRaw, readRestRaw, readString, readString, reset, setData, setRPos, setWPos, writeBigInt, writeBigIntBits, writeBoolean, writeByte, writeInt, writeRaw, writeRaw, writeString, writeString, writeString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PACKET_DEFAULT_SIZE
public static final int PACKET_DEFAULT_SIZE
- See Also:
- Constant Field Values
PACKET_MIN_SIZE
public static final int PACKET_MIN_SIZE
- See Also:
- Constant Field Values
PACKET_MAX_SIZE
public static final int PACKET_MAX_SIZE
- See Also:
- Constant Field Values
pktDefaultSize
public static int pktDefaultSize
factoryInstance
public static SSH2TransportPDU factoryInstance
pktSize
protected int pktSize
padSize
protected int padSize
pktType
protected int pktType
SSH2TransportPDU
protected SSH2TransportPDU()
SSH2TransportPDU
protected SSH2TransportPDU(int pktType,
int bufSize)
createInPDU
protected SSH2TransportPDU createInPDU(int bufSize)
createOutPDU
protected SSH2TransportPDU createOutPDU(int pktType,
int bufSize)
setFactoryInstance
public static final void setFactoryInstance(SSH2TransportPDU factory)
createIncomingPacket
public static final SSH2TransportPDU createIncomingPacket(int bufSize)
createIncomingPacket
public static final SSH2TransportPDU createIncomingPacket()
createOutgoingPacket
public static final SSH2TransportPDU createOutgoingPacket(int pktType,
int bufSize)
createOutgoingPacket
public static final SSH2TransportPDU createOutgoingPacket(int pktType)
createTranceiverContext
public static final SSH2Transport.TranceiverContext createTranceiverContext(java.lang.String cipherName,
java.lang.String macName,
java.lang.String compName)
throws java.lang.Exception
java.lang.Exception
release
public void release()
makeCopy
public SSH2TransportPDU makeCopy()
getType
public int getType()
setType
public void setType(int pktType)
getPayloadLength
public int getPayloadLength()
getPayloadOffset
public int getPayloadOffset()
readFrom
protected void readFrom(java.io.InputStream in,
int seqNum,
SSH2Transport.TranceiverContext context)
throws java.io.IOException,
SSH2Exception,
com.mindbright.jce.crypto.ShortBufferException
java.io.IOException
SSH2Exception
com.mindbright.jce.crypto.ShortBufferException
checkMac
protected void checkMac(com.mindbright.jce.crypto.Mac mac,
int macSize)
throws SSH2MacCheckException,
com.mindbright.jce.crypto.ShortBufferException
SSH2MacCheckException
com.mindbright.jce.crypto.ShortBufferException
readNextNFrom
protected final void readNextNFrom(java.io.InputStream in,
int n)
throws java.io.IOException,
SSH2EOFException
java.io.IOException
SSH2EOFException
writeTo
protected void writeTo(java.io.OutputStream out,
int seqNum,
SSH2Transport.TranceiverContext context,
SecureRandomAndPad rand)
throws java.io.IOException,
com.mindbright.jce.crypto.ShortBufferException,
SSH2CompressionException
java.io.IOException
com.mindbright.jce.crypto.ShortBufferException
SSH2CompressionException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
createTranceiverContextImpl
public SSH2Transport.TranceiverContext createTranceiverContextImpl(java.lang.String cipherName,
java.lang.String macName,
java.lang.String compName)
throws java.lang.Exception
java.lang.Exception