code: public static byte[] readSecurityBufferTarget(
              byte[] msg, int securityBufferOffset) {
          byte[] securityBuffer = new byte[8];
  
          System.arraycopy(msg, securityBufferOffset, securityBuffer, 0, 8);
          ByteUtilities.changeWordEndianess(securityBuffer, 0, 8);
          int length = ByteUtilities.makeIntFromByte2(securityBuffer);
          int offset = ByteUtilities.makeIntFromByte4(securityBuffer, 4);
  
          byte[] secBufValue = new byte[length];
          System.arraycopy(msg, offset, secBufValue, 0, length);
          
          return secBufValue;
      }
docs: Reads the byte array described by the security buffer stored at the
  <code>securityBufferOffset</code> offset.
  
  @param msg the message where to read the security buffer and it's value
  @param securityBufferOffset the offset at which to read the security buffer
  @return a new byte array holding the data pointed by the security buffer