Class RawMessageData.CosemPdu

  • Enclosing class:
    RawMessageData

    public static class RawMessageData.CosemPdu
    extends java.lang.Object
    Representation of a raw COSEM PDU.
    • Constructor Summary

      Constructors 
      Constructor Description
      CosemPdu​(byte[] cipheredCosemPdu, byte[] plainCosemPdu)  
    • Constructor Detail

      • CosemPdu

        public CosemPdu​(byte[] cipheredCosemPdu,
                        byte[] plainCosemPdu)
    • Method Detail

      • getCipheredCosemPdu

        public byte[] getCipheredCosemPdu()
        Get the ciphered COSEM PDU.

        NOTE: this may be null if the transmitted message is no encrypted.

        Returns:
        the ciphered COSEM PDU as byte array.
      • getPlainCosemPdu

        public byte[] getPlainCosemPdu()
        Get the plain COSEM PDU
        Returns:
        returns the plain/unencrypted COSEM PDU.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object