net.officefloor.plugin.socket.server.ssl
Interface TemporaryByteArrayFactory

All Known Implementing Classes:
SslConnectionHandler

public interface TemporaryByteArrayFactory

Creates temporary byte array instances necessary for the SslConnection to decipher data.

Author:
Daniel Sagenschneider

Method Summary
 byte[] createDestinationByteArray(int minimumSize)
           Creates a byte array that will be at least the size specified (it may however be bigger to allow reuse of byte array instances).
 byte[] createSourceByteArray(int minimumSize)
           Creates a byte array that will be at least the size specified (it may however be bigger to allow reuse of byte array instances).
 

Method Detail

createSourceByteArray

byte[] createSourceByteArray(int minimumSize)

Creates a byte array that will be at least the size specified (it may however be bigger to allow reuse of byte array instances).

This will always be a different byte array to that returned from other methods of this interface.

Parameters:
minimumSize - Minimum size for the returned byte array.
Returns:
Temporary byte array.

createDestinationByteArray

byte[] createDestinationByteArray(int minimumSize)

Creates a byte array that will be at least the size specified (it may however be bigger to allow reuse of byte array instances).

This will always be a different byte array to that returned from other methods of this interface.

Parameters:
minimumSize - Minimum size for the returned byte array.
Returns:
Temporary byte array.


Copyright © 2005-2011. All Rights Reserved.