Class AbstractCipherTransmissionDecorator<DECORATEE extends Transmission>

java.lang.Object
org.refcodes.serial.AbstractTransmissionDecorator<DECORATEE>
org.refcodes.serial.AbstractCipherTransmissionDecorator<DECORATEE>
Type Parameters:
DECORATEE - The Transmission type describing the Transmission subclass to be enriched.s
All Implemented Interfaces:
Serializable, org.refcodes.mixin.DecorateeAccessor<DECORATEE>, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.Schemable<SerialSchema>, Transmission, Transmission.TransmissionMixin
Direct Known Subclasses:
CipherSectionDecorator, CipherSegmentDecorator

public abstract class AbstractCipherTransmissionDecorator<DECORATEE extends Transmission> extends AbstractTransmissionDecorator<DECORATEE>
An abstract implementation of bijective and inverse functions applied to the decoratee's transmitting and receiving methods.
See Also:
  • Field Details

    • _cipher

      protected Cipher _cipher
  • Constructor Details

    • AbstractCipherTransmissionDecorator

      public AbstractCipherTransmissionDecorator(DECORATEE aDecoratee, Cipher aCipher)
      Constructs a Cipher transmission decorator applying bijective and inverse functions upon the delegated methods.
      Parameters:
      aDecoratee - The decorator having applied the Cipher's BijectiveFunction to encode and the Cipher's InverseFunction to decode any data being delegated.
      aCipher - The Cipher providing the BijectiveFunction to encode and the Cipher's InverseFunction to decode any data being delegated.
  • Method Details