Package com.hierynomus.smbj.connection
Class PacketSignatory.SignedPacketWrapper.SigningBuffer
- java.lang.Object
-
- com.hierynomus.protocol.commons.buffer.Buffer<SMBBuffer>
-
- com.hierynomus.smb.SMBBuffer
-
- com.hierynomus.smbj.connection.PacketSignatory.SignedPacketWrapper.SigningBuffer
-
- Enclosing class:
- PacketSignatory.SignedPacketWrapper
private class PacketSignatory.SignedPacketWrapper.SigningBuffer extends SMBBuffer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hierynomus.protocol.commons.buffer.Buffer
Buffer.BufferException, Buffer.PlainBuffer
-
-
Field Summary
Fields Modifier and Type Field Description private Mac
mac
private SMBBuffer
wrappedBuffer
-
Fields inherited from class com.hierynomus.protocol.commons.buffer.Buffer
DEFAULT_SIZE, MAX_SIZE, rpos, wpos
-
-
Constructor Summary
Constructors Constructor Description SigningBuffer(SMBBuffer wrappedBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Buffer<SMBBuffer>
putBuffer(Buffer<? extends Buffer<?>> buffer)
Copies the contents of provided buffer into this buffer.Buffer<SMBBuffer>
putByte(byte b)
Writes a single byte into this bufferBuffer<SMBBuffer>
putRawBytes(byte[] buf, int offset, int length)
Write the bytes of the passed byte array into this buffer, starting at offset, and writing length bytes.-
Methods inherited from class com.hierynomus.smb.SMBBuffer
putReserved, putReserved1, putReserved2, putReserved4, putString, putStringLengthUInt16
-
Methods inherited from class com.hierynomus.protocol.commons.buffer.Buffer
array, asInputStream, available, clear, compact, ensureAvailable, ensureCapacity, getCompactData, getNextPowerOf2, printHex, putBoolean, putLong, putLong, putNullTerminatedString, putRawBytes, putString, putUInt16, putUInt16, putUInt24, putUInt24, putUInt32, putUInt32, putUInt64, putUInt64, readBoolean, readByte, readLong, readLong, readNullTerminatedString, readRawBytes, readRawBytes, readRawBytes, readString, readString, readUInt16, readUInt16, readUInt24, readUInt24, readUInt32, readUInt32, readUInt32AsInt, readUInt64, readUInt64, rpos, rpos, skip, toString, wpos, wpos
-
-
-
-
Constructor Detail
-
SigningBuffer
SigningBuffer(SMBBuffer wrappedBuffer) throws SecurityException
- Throws:
SecurityException
-
-
Method Detail
-
putByte
public Buffer<SMBBuffer> putByte(byte b)
Description copied from class:Buffer
Writes a single byte into this buffer
-
putBuffer
public Buffer<SMBBuffer> putBuffer(Buffer<? extends Buffer<?>> buffer)
Description copied from class:Buffer
Copies the contents of provided buffer into this buffer. NOTE: This does not update the source buffer fields!
-
putRawBytes
public Buffer<SMBBuffer> putRawBytes(byte[] buf, int offset, int length)
Description copied from class:Buffer
Write the bytes of the passed byte array into this buffer, starting at offset, and writing length bytes.- Overrides:
putRawBytes
in classBuffer<SMBBuffer>
- Parameters:
buf
- The array of bytes to writeoffset
- The offset at which to start reading from the passed arraylength
- The number of bytes to write from the passed array- Returns:
-
-