org.opcfoundation.ua.transport.tcp.impl
Class ChunkFactory.AsymmMsgChunkFactory

java.lang.Object
  extended by org.opcfoundation.ua.utils.bytebuffer.ByteBufferFactory
      extended by org.opcfoundation.ua.transport.tcp.impl.ChunkFactory
          extended by org.opcfoundation.ua.transport.tcp.impl.ChunkFactory.AsymmMsgChunkFactory
Enclosing class:
ChunkFactory

public static class ChunkFactory.AsymmMsgChunkFactory
extends ChunkFactory


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opcfoundation.ua.transport.tcp.impl.ChunkFactory
ChunkFactory.AcknowledgeChunkFactory, ChunkFactory.AsymmMsgChunkFactory, ChunkFactory.ErrorMessageChunkFactory, ChunkFactory.HelloChunkFactory
 
Field Summary
 
Fields inherited from class org.opcfoundation.ua.transport.tcp.impl.ChunkFactory
cipherBlockSize, maxChunkSize, maxPlaintextSize, messageHeaderSize, securityHeader, securityMode, sequenceHeader, signatureSize
 
Fields inherited from class org.opcfoundation.ua.utils.bytebuffer.ByteBufferFactory
BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY, DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY, LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY
 
Constructor Summary
ChunkFactory.AsymmMsgChunkFactory(int maxChunkSize, SecurityConfiguration profile)
           
 
Method Summary
 ByteBuffer allocate(int bodySize)
          allocate.
 
Methods inherited from class org.opcfoundation.ua.transport.tcp.impl.ChunkFactory
encryptChunk, expandToCompleteChunk, expandToCompleteChunk, getMinimumPadding, signChunk, writePadding, writePaddingSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkFactory.AsymmMsgChunkFactory

public ChunkFactory.AsymmMsgChunkFactory(int maxChunkSize,
                                         SecurityConfiguration profile)
                                  throws ServiceResultException
Throws:
ServiceResultException
Method Detail

allocate

public ByteBuffer allocate(int bodySize)
Description copied from class: ChunkFactory

allocate.

Allocate chunk for a message with a given body size.

Overrides:
allocate in class ChunkFactory
Parameters:
bodySize - a int.
Returns:
a ByteBuffer object.


Copyright © 2018. All rights reserved.